I have a image that has the value of 716x716 double and size 716x716. However, I need to scale the image to a size of 128. Can I use the scale function to perform this or is there a different way scaling the image to a size of 128?
whatisit = double(Phantom_3_Defects(:,:,2))/255;
figure
imagesc(whatisit)
I have also attached the workspace file.

 採用された回答

KSSV
KSSV 2021 年 7 月 7 日

0 投票

If I is your image:
I1 = imresize(I,[128 128]) ;

1 件のコメント

Ryan
Ryan 2021 年 7 月 7 日
Great! Thank you KSSV, that works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

製品

リリース

R2019b

質問済み:

2021 年 7 月 7 日

コメント済み:

2021 年 7 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by