MATLAB Answers

Jubin Philip

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

on 9 Feb 2013

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

1 Answer

Answer by Image Analyst
on 9 Feb 2013

How about imresize():

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


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!