Presentation is loading. Please wait.

Presentation is loading. Please wait.

With Hafiz Syed Muhammad Rafi.

Similar presentations


Presentation on theme: "With Hafiz Syed Muhammad Rafi."— Presentation transcript:

1 With Hafiz Syed Muhammad Rafi

2 Introduction to Image:
Fundamentals Introduction to Image: Image as matrix Image Type Image Class Image Size Image Resolution Read: kid=imread('kid02.jpg'); Image Info: info=imfinfo('kid02.jpg'); or whos kid; [r c]=size(kid); Display: figure; imshow(kid);

3 Conversion of Class and Type:
Write on Disk: imwrite(kid,'kid02gray.png'); imwrite(kid,'kid02gray.jpg’,’quality’,75); % (0:100) imwrite(kid,'kid02gray.tif’,’compression’,’none’,‘resolution’,[m n]); Conversion of Class and Type: B=logical(A); C=im2bw(T); F=Im2double(g); G=im2uint8(H); Image Arithmatic: C=imadd(A,B); C=imsubtract(A,B); C=immultiply(A,B); C=imdivide(A,B); C=imabsdiff(A,B); C=imcomplement(A); 3

4 Image Flipping and Sizing:
C=F(end:-1:1,:); C=F(:, end:-1:1); C=F(1:2:end,1:2:end); Image Cropping: C=F(50:end-20, 50:end-40); Pixel Information Direct: impixelinfo; imdistline; Color Image to Gray: C=rgb2gray(F);

5 Spatial Domain Processing
Histograms H=imhist(A,nbins); H=imhist(A,nbins)/numel(A); % normalized histogram H=histeq(A,nbins); % histogram equalization I = imread('pout.tif'); imhist(I) I2 = histeq(I); imhist(I2) Figure, imshow([I I2])

6 END MS Image Processing 6


Download ppt "With Hafiz Syed Muhammad Rafi."

Similar presentations


Ads by Google