I have a folder of 20 images that I need to shrink down to the size of the smallest image.
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello.
I have a folder of 20 images that I need to shrink down to the size of the smallest image (smallest of those 20 in the folder). I am not allowed to to use "imresize" or "imcrop" and I am having a lot of trouble with it. The smallest image is 127 x 129. Please help!
Thank you!
댓글 수: 2
답변 (2개)
Vandana Rajan
2017년 2월 27일
편집: Walter Roberson
2017년 2월 27일
Hi,
You may try implementing some image resampling techniques. The same algorithm can be used for shrinking as well as enlarging an image by using proper scale factors and pixel locations. A quick search gave me the following useful links
댓글 수: 0
Walter Roberson
2017년 2월 27일
One approach
ifft2( fft( fft( TheImage, TargetRows, 2), TargetColumns ) )
댓글 수: 1
Vandana Rajan
2017년 2월 27일
This is so easy :)
But this gives cropped image and not a shrunk image, right?
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!