Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

how to downsample a color image in matlab??

Asked by Jubin Philip on 9 Feb 2013

hi, I d like to know how to downsample an image. i used the normal downsample syntax for an image but i din get d result i want. I want every pixel in the image to be downsampled. I searched for codes but din understand syntax used in many codes. kindly help me wid dis.

1 Comment

Jurgen on 9 Feb 2013

You mean you want to reduce the bitdepth, not the resolution, right?

Jubin Philip

1 Answer

Answer by Image Analyst on 9 Feb 2013

How about imresize():

resizedImage = imresize(originalImage, [numRows, numCols]);

0 Comments

Image Analyst

Contact us