Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Image Processing in MATLAB Tutorial 1 - Acquisition and Display

The basics of image acquisition, display, basic operations and how we can store a processed image onto the hard drive.

%Code:
a = imread('color.jpg');
imshow(a);
imtool(a)
b = imcrop(a, [100 100 100 100]);
imshow(b)
c = imresize(a, 0.5);
imshow(c)
d = imrotate(a,75);
subplot(2,2,1), imshow(a), subplot(2,2,2), imshow(b), subplot(2,2,3), imshow(c), subplot(2,2,4), imshow(d)
imwrite(d,’rotate.png’,’png’);

gray = rgb2gray(a);
imshow(gray);
imhist(gray);
b = imadjust(gray);
imshow(b);
c = histeq(d);
imshow(c);
d = im2bw(c);
imshow(d);

No comments

Popular Posts