フィルターのクリア

How to Resize multiple Images without affecting the image features?

16 ビュー (過去 30 日間)
Imran Riaz
Imran Riaz 2022 年 8 月 23 日
回答済み: Taru 2022 年 11 月 23 日
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?

回答 (1 件)

Taru
Taru 2022 年 11 月 23 日
Hi Imran,
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:
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.

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by