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 Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2016년 11월 8일

댓글:

2016년 11월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by