How to Resize multiple Images without affecting the image features?
조회 수: 9 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
Taru
2022년 11월 23일
Hi Imran,
I understand that you want to apply resize operation on multiple images.
After building the ‘imageDatastore’, use ‘transform’ function with a helper function which entails the required resizing operations.
Here is an example of implementing it:
imds=imageDatastore(["bug1.png","bug2.png"]);
targetSize = [224,224];
imdsReSz = transform(imds,@(x) imresize(x,targetSize));
I=read(imdsReSz);
imshow(I)
Hope it resolves your query.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!