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

 采纳的回答

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by