How do you shrink multiple images without using imresize or imcrop?
조회 수: 4 (최근 30일)
이전 댓글 표시
I have to shrink 20 images to 129 x 120 without cutting off any of the image and without using imresize or imcrop.
댓글 수: 0
답변 (1개)
Image Analyst
2018년 11월 19일
You could use interp2() or else just write your own code to do the same things as the functions you (for some reason) don't want to use.
댓글 수: 2
Image Analyst
2018년 11월 20일
You could first figure out what coordinates in the input image the value should come from. Chances are it will land between 4 input pixels. So you can use bilinear interpolation.
참고 항목
카테고리
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!