Saturday 21 November 2015

How to get an image from a file in MATLAB?...

Query=> How to get an image from a file in MATLAB?...

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