roipoly
조회 수: 22 (최근 30일)
이전 댓글 표시
Hi,
I would like to know if it is possible to create a ROI on a current figure.
x=[1 2 3 4 5 6];
y=[7 8 9 10 11 12];
plot(x,y)
Now i would like to define a ROI, is it possible to use roipoly
I='Figure 1'
r=[-20 20]
c=[-20 20]
BW=roipoly(I,r,c)
cheers
nicolas
댓글 수: 0
답변 (1개)
Image Analyst
2012년 1월 12일
No. I has to be an image, not a string. And r and c must have at least three points - that would be a triangle. As you have it, r and c define a line, not a polygon.
댓글 수: 9
Walter Roberson
2012년 1월 13일
It sounds to me like you should be working in the dual space from voronoi, namely the delaunay triangulation.
참고 항목
카테고리
Help Center 및 File Exchange에서 Voronoi Diagram에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!