How do I change image scale?

2 次查看(过去 30 天)
Ryan
Ryan 2021-7-7
评论: Ryan 2021-7-7
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
If I is your image:
I1 = imresize(I,[128 128]) ;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by