Resizing image in pixels
조회 수: 5 (최근 30일)
이전 댓글 표시
Is there anyway to resize an image in terms of pixels? say, i want to resize my picture with no change of proportion to 160x160 pixels?
help is very much appreciated!
댓글 수: 0
답변 (1개)
Guillaume
2015년 2월 26일
편집: Guillaume
2015년 2월 26일
resizedimage = imresize(originalimage, [160 160]);
댓글 수: 2
Guillaume
2015년 2월 26일
Then post the code you're using, as it works fine for me:
originalimage = randi([0 255], 1000, 1000);
resizedimage = imresize(originalimage, [160 160]);
whos resizedimage
returns:
Name Size Bytes Class Attributes
resizedimage 160x160 204800 double
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!