Monday 16 April 2012

Matlab Image Resize Example code | How to Resize the Image on Matlab

Image is collection of row and column pixel.In matlab, RGB images contain 3D matrix's .Every Matrix contain RGB values.Here we discuss How to Re-size the Image on Matlab? In matlab contain imresize function .it is convert the Image original size into user defined size.Its predefined function on matlab.This one explain following examples,

Example

width = 256; % user defined resize width
height = 256;% user defined resize height
input_img = imread('vivekananda.jpg');
figure;imshow(input_img);

resize_img = imresize(input_img,[width height]);
% Resize function figure;imshow(resize_img);

This above example Output as follows





Related Search : Matlab Image Resize Example code , How to Resize the Image on Matlab,Matlab imresize example code,Resize image on matlab

Kindly Bookmark and Share it:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...