Professional Documents
Culture Documents
Implimentation of Dip
Implimentation of Dip
Implimentation of Dip
a =imread('peppers.png'); imshow(a);
A=imread(peppers.png);
Imshow(A);
Title(input image)
A=imread(peppers.png);
B=imread(cameraman.tif );
figure,imshow(A);
figure,imshow(B);
A=imread(peppers.png);
B=rgb2gray(A);
figure,Imshow(A);
figure,imshow(B);
figure,imshow(D);
imtool
Navigate image using overview Inspect pixel values Display image information Crop image Measure distance
a =imread('football.jpg'); Imtool(a);
e=imadd(c,d);
figure,imshow(a); figure,imshow(b); figure,imshow(e);
figure,imshow(b);
figure,imshow(e);
rotating of an image
A=imread(peppers.png); B=imrotate(A,180); % 90,180,270,360 ext.. figure,imshow(A); figure,imshow(B);
image adjustment
I = imread('pout.tif'); J = imadjust(I);
figure, imshow(I),
figure, imshow(J)
Dwt process
a = imread('peppers.png'); figure,imshow(a,[]); b = rgb2gray(a); figure,imshow(b,[]); %DWT [ll lh hl hh] = dwt2(b,'haar'); c = [ll lh;hl hh]; figure,imshow(c,[]); %IDWT x = idwt2(ll,lh,hl,hh,'haar'); figure,imshow(x,[]);
Subplot
a=imread('peppers.png'); subplot(2,1,1); imshow(a); b=rgb2gray(a); subplot(2,1,2);
imshow(b);
Dialog box
warndlg('hello');
helpdlg('hello'); errordlg('hello');
msgbox('hello');