feat(dip): matlab dip lab1

This commit is contained in:
iridiumR 2022-10-31 11:22:33 +08:00
parent 0156dfc21d
commit c4cf8396e0
15 changed files with 49 additions and 0 deletions

BIN
Matlab/dip/lab1/CH3.2.2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

BIN
Matlab/dip/lab1/lab1_0.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

BIN
Matlab/dip/lab1/lab1_1.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
Matlab/dip/lab1/lab1_2.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
Matlab/dip/lab1/lab1_3.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

8
Matlab/dip/lab1/lab1_3.m Normal file
View file

@ -0,0 +1,8 @@
close all
clear
clc
disp('====E1_2_1.m====');
I1=imread('lab1_2.bmp');
subplot(2,2,1),imshow(I1),xlabel('(a)256 '); % 1
I2=imread('lab1_0.bmp');
subplot(1,2,2),imshow(I2),xlabel('(b)24');

11
Matlab/dip/lab1/lab1_4.m Normal file
View file

@ -0,0 +1,11 @@
clear;
clc
close all;
disp('====E2_4_2.m====');
I=imread('PIC2.4.3a-RGB24b.bmp');
imfinfo('PIC2.4.3a-RGB24b.bmp')
I2=im2bw(I); % 1
imwrite(I2,'PIC2.4.3b-GRAY.bmp');
imfinfo('PIC2.4.3b-GRAY.bmp')
figure,subplot(1,2,1),imshow(I);
subplot(1,2,2),imshow(I2);

10
Matlab/dip/lab1/lab1_5.m Normal file
View file

@ -0,0 +1,10 @@
close all
clear
clc
disp('====CH3_2_2.m====');
I1=imread('lab1_0.bmp');
I2=imresize(I1,0.1,'nearest'); % 1
I3=imresize(I1,10.5,'triangle'); % 2
figure,imshow(I1),xlabel('');
figure,imshow(I2),xlabel('');
figure,imshow(I3),xlabel('');

10
Matlab/dip/lab1/lab1_6.m Normal file
View file

@ -0,0 +1,10 @@
close all
clear
clc
disp('====CH3_2_3.m====');
I1=imread('lab1_0.bmp');
I2=imrotate(I1,-60,'bilinear'); % 1
I3=imrotate(I1,60,'bicubic','crop'); % 2
subplot(2,2,1),imshow(I1),xlabel('');
subplot(2,2,3),imshow(I2),xlabel('30');
subplot(2,2,4),imshow(I3),xlabel('30');

10
Matlab/dip/lab1/lab1_7.m Normal file
View file

@ -0,0 +1,10 @@
close all
clear
clc
disp('====CH3_2_4.m====');
I = imread('lab1_0.bmp');
I1=fliplr(I); % 1
I2=flipud(I); % 2
subplot(2,1,1),imshow(I),xlabel('(a)');
subplot(2,2,3),imshow(I1),xlabel('(b)');
subplot(2,2,4),imshow(I2),xlabel('(c)');