필터 지우기
필터 지우기

Change placemarker size/zoom when using impoly()

조회 수: 2 (최근 30일)
David
David 2012년 4월 5일
I display a TIF file using imshow() and then draw a polygon on the image using impoly().
twinImage = imread(filenamepath);
hFig = figure('name','ECCI Image');
set(hFig,'WindowStyle','docked');
imshow(twinImage);
ph = impoly();
The features I am trying to enclose in the polygon are sometimes very fine, so I want to reduce the placemarker size and the line thickness of the polygon. Is that possible?
In addition, it would help greatly to be able to zoom in and out of the image while drawing the polygon. Is this possible?

채택된 답변

Ashish Uthama
Ashish Uthama 2012년 4월 5일
About the second question:
  • Yes, while drawing the polygon, mouse over and click the (+) button on the toolbar.
  • Dont worry about the current edge which follows your mouse, its not 'closed' yet.
  • Use your mouse wheel or double click or click+drag to zoom
  • Click the (+) button after you have zoomed per requirement
  • You should be placed back in the polygon creation mode with the active edge.
Now, about the first, when you zoom in, the pixels are enlarged, but the vertex markers and the lines are the same size/thickness as before. Hopefully that helps some.
  댓글 수: 1
David
David 2012년 4월 5일
Thank you for the advice. I did not realize you could use the zoom functionality while creating the polygon! This is exactly what I was looking for.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by