Professional Documents
Culture Documents
Image Processing Matlab by Pankaj
Image Processing Matlab by Pankaj
imshow(a);
To show the image and different tool operations in image:
imtool(a);
To crop the image :
subplot(2,2,1), imshow(a);subplot(2,2,2),imshow(b);
subplot(2,2,3),imshow(c); subplot(2,2,4),imshow(d);
To know the size of the image:
Type size(variable in which your image is stored).
Ex- size(a)
To know the information about the image:
Type imfinfo(‘address of the images')
Ex- imfinfo('C:\Users\Anhishek\Desktop\bird.jpg')
To see the pixel information by moving the cursor:
write only impixelinfo then press enter key.
To delete the row by pixel number:
Ex- a(800:900,:)=0;
imshow(a)
To see the three layer of the images on a sub plot :
Program-
e=imread('C:\Users\Anhishek\Desktop\bird.jpg');
>> imshow(e);
q=e(:,:,1);
>> subplot(2,2,1);imshow(q);
>> w=e(:,:,2);
>> subplot(2,2,2);imshow(w);
>> a=e(:,:,3);
>> subplot(2,2,3);imshow(a);
>> q=e(:,:,1);