How to change scale of y-axes of an image displayed with imagesc?
28 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!