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

 採用された回答

Image Analyst
Image Analyst 2016 年 11 月 8 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by