Saturday, August 14, 2010

HOW TO RESIZE THE IMAGE

 Warning occurs in matlab like"image is too big to fit on screen".For that we should resize our image.We have to reduce our size of the image.

SYNTAX for resizing the image:

       a=imread('filename.jpg');

       b=imresize(a,[mrows n columns]);


MATLAB CODING TO RESIZE THE IMAGE:

>>a=imread('greatwall.jpg');
>>imshow(a)
>> b=imresize(a,[400 300]);
>> imshow(b)


 ORIGINAL IMAGE:


RESIZED IMAGE:

No comments:

Post a Comment