0% found this document useful (0 votes)
26 views9 pages

Image Processing Techniques in MATLAB

Uploaded by

rafatameenw123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views9 pages

Image Processing Techniques in MATLAB

Uploaded by

rafatameenw123
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Table of Contents

cut image ........................................................................................................................... 1


resize image ....................................................................................................................... 2
Binary image ...................................................................................................................... 5
gray image ......................................................................................................................... 6
index image ....................................................................................................................... 7
color image ........................................................................................................................ 8

cut image
img = imread('[Link]');
figure,imshow(img)
impixelinfo
c = img(37:88,87:171);
figure,imshow(c)

1
resize image
figure,imshow(img)
h = imresize(img,2);
figure,imshow(h)
s = imresize(img,0.5);
figure,imshow(s)
h = imresize(img,[100 50]);
figure,imshow(h)

2
3
imtool('[Link]')

4
Binary image
bw = imread('[Link]');
figure,imshow(bw)
impixelinfo

5
gray image
g = imread('[Link]');
figure,imshow(g)
impixelinfo

Warning: Image is too big to fit on screen;


displaying at 25%

6
index image
[in cm] = imread('[Link]');
figure,imshow(in,cm)
impixelinfo

7
color image
c = imread('[Link]');
figure,imshow(c)
impixelinfo

8
Published with MATLAB® R2018a

You might also like