I want a MATLAB code that will resize a given image into 25x25 image using multiple images from a folder

6 views (last 30 days)
I have total 649 images that i want to resized into 25 x 25 one shot. Is it even possible or i have to specifically select an image and resize it.

Answers (2)

Adam
Adam on 19 Dec 2017
Edited: Adam on 19 Dec 2017
If you have the Image Processing Toolbox then
doc imresize
should work fine. Use a loop if you want to do it for 649 images.

Image Analyst
Image Analyst on 19 Dec 2017
See the FAQ:
and use one of the chunks of code there to process a sequence of images.
Inside the loop put a call to imresize
resizedImage = imresize(thisImage, [25, 25]);
imwrite(resizedImage, outputFileName);

Community Treasure Hunt

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

Start Hunting!