I have a folder of 20 images that I need to shrink down to the size of the smallest image.

1 回表示 (過去 30 日間)
Taylor C
Taylor C 2017 年 2 月 27 日
コメント済み: Vandana Rajan 2017 年 2 月 27 日
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 件のコメント
KSSV
KSSV 2017 年 2 月 27 日
How about using interp2?
Image Analyst
Image Analyst 2017 年 2 月 27 日
Why can't you use those functions?????

サインインしてコメントする。

回答 (2 件)

Vandana Rajan
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

Walter Roberson
Walter Roberson 2017 年 2 月 27 日
One approach
ifft2( fft( fft( TheImage, TargetRows, 2), TargetColumns ) )
  1 件のコメント
Vandana Rajan
Vandana Rajan 2017 年 2 月 27 日
This is so easy :)
But this gives cropped image and not a shrunk image, right?

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by