Sunday, 29 November 2015

MATLAB CODE FOR READING AN IMAGE

 Read an Image from File:

Ans=> To get an image from a file "uigetfile" command can be used where both the file name and pathname can be get simultaneously..... An example for getting an image is worked out below,....
[filename,pathname] = uigetfile('*.jpg;*.png;*.bmp;*.tif');   % to get an image of different image format
I = imread([pathname,filename]);  % imread will read the selected image
imshow(I);   %to view the image




FOR MORE DETAILS,

                                CLICK HERE

No comments:

Post a Comment