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

7 vues (au cours des 30 derniers jours)
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!

Réponses (2)

Vandana Rajan
Vandana Rajan le 27 Fév 2017
Modifié(e) : Walter Roberson le 27 Fév 2017
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 le 27 Fév 2017
One approach
ifft2( fft( fft( TheImage, TargetRows, 2), TargetColumns ) )

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by