필터 지우기
필터 지우기

How to change scale of y-axes of an image displayed with imagesc?

조회 수: 1 (최근 30일)
Miguel
Miguel 2024년 3월 28일
댓글: Miguel 2024년 4월 12일
Hi everyone,
I have spent a lot of time trying to change the scale of the y-axes of the image shown below from 0-200 (pixels) to 0-45 (mm). Can any of you help me figure this out? To display the image, I am using imagesc.
Thank you so much for your help!

채택된 답변

DGM
DGM 2024년 3월 28일
imagesc() supports the specification of the x and y ranges. I don't know what your x range should be, but since this example image is square, I'm using the same for both x and y.
inpict = imread('cameraman.tif');
imagesc([0 45],[0 45],inpict)

추가 답변 (0개)

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by