How do you shrink multiple images without using imresize or imcrop?

조회 수: 4 (최근 30일)
MK
MK 2018년 11월 19일
댓글: Image Analyst 2018년 11월 20일
I have to shrink 20 images to 129 x 120 without cutting off any of the image and without using imresize or imcrop.

답변 (1개)

Image Analyst
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
MK
MK 2018년 11월 19일
I am not allowed to use those functions on my homework assignment. Could you show me how to start the code for them?
Image Analyst
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 CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by