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,....MATLAB CODE:
[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,
No comments:
Post a Comment