Zoom Image Matlab?

조회 수: 49 (최근 30일)
denis bertin
denis bertin 2017년 11월 3일
댓글: Walter Roberson 2020년 2월 11일
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')

채택된 답변

Walter Roberson
Walter Roberson 2017년 11월 3일
You can generally turn zoom on or off or set a zoom factor using zoom()
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
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.
denis bertin
denis bertin 2017년 11월 5일
Yes! it's true. Sorry, i would want grey image.
Thank you...

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

추가 답변 (1개)

Image Analyst
Image Analyst 2017년 11월 4일
See attached zoom demo, given to me by the Mathworks.
  댓글 수: 3
Bang bang
Bang bang 2020년 2월 11일
How can I contact you Image Analyst I have a lot of question for you
Walter Roberson
Walter Roberson 2020년 2월 11일
You can create Questions in MATLAB Answers.
Image Analyst does not accept private correspondence.

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

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by