Zoom Image Matlab?
26 次查看(过去 30 天)
显示 更早的评论
Hi,
please want to zoom my image; How can i do please?
I done this code:
load navatalungo_H.asc
NP1 = 1151;
xx=linspace(0,0.02*(NP1-1),NP1);
imagesc(xx,t,navatalungo_H')
0 个评论
采纳的回答
Walter Roberson
2017-11-3
However, if you want to zoom to a particular section then the easiest way is to set the axes xlim and ylim . When you do this you should take into account that the xx and t coordinates are the coordinates of the centers of pixels, so you would want to nudge the limits a little to the left or right to include whole pixels.
Note: when you pass x and y values to image() or imagesc() or imshow(), then only the first and last values are paid attention to. If you need a non-linear presentation of an image you need to handle it a different way, such as using pcolor(), or texture mapping your image onto a surface or patch.
11 个评论
Walter Roberson
2017-11-4
If you look at Cattur1.PNG that you posted first, the background color is white and the content of the image happens to be mostly blue. I think the blue is your image, not background.
更多回答(1 个)
Image Analyst
2017-11-4
See attached zoom demo, given to me by the Mathworks.
3 个评论
Walter Roberson
2020-2-11
You can create Questions in MATLAB Answers.
Image Analyst does not accept private correspondence.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!