Resizing Image using imread

Is there a way to resize an image without using imresize? For example I = imread('rice.png') returns a 256 x 256 logical array. Is there some way I can specify (in the argument of the imread function) the size of the array? Say if I wanted it to be 128 x 128, instead of 256 x 256? Thanks

 Accepted Answer

You could use interp2. Or indexing
out = inputImage(1:2:end, 1:2:end);

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!