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
No comments:
Post a Comment