Monday, November 23, 2015

HOW TO READ IMAGE FROM FILE USING MATLAB?

Read Image and Display:

Read image from file and display, we have to type this code in matlab and run..
clc;
clear all;
close all;
[FileName,PathName] = uigetfile('*.jpg','Select the IMAGE file');
I=imread([PathName,FileName]);
% I=imresize(I,[256 256]);
imshow(I);
title('Input Image');

THE OUTPUT RESULT:

No comments:

Post a Comment