How do I change image scale?

조회 수: 3 (최근 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]) ;
  댓글 수: 1
Ryan
Ryan 2021년 7월 7일
Great! Thank you KSSV, that works.

댓글을 달려면 로그인하십시오.

추가 답변 (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