How to Resize multiple Images without affecting the image features?
5 views (last 30 days)
HI How to Resize multiple Images without affecting the image features? i have finger knusckles dataset and almost all images are of different size. How to resize all images so that it can be useful for further processing and resizing does not affect the image features also?
Taru on 23 Nov 2022
I understand that you want to apply resize operation on multiple images.
You can pile up the images in an ‘imageDatastore’.
After building the ‘imageDatastore’, use ‘transform’ function with a helper function which entails the required resizing operations.
Here is an example of implementing it:
targetSize = [224,224];
imdsReSz = transform(imds,@(x) imresize(x,targetSize));
Hope it resolves your query.