roipoly

1 次查看(过去 30 天)
Nicolas
Nicolas 2012-1-12
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

回答(1 个)

Image Analyst
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 个评论
Nicolas
Nicolas 2012-1-13
in my ROI, I have a population of points that increase with time, for each new point i want to recalculate the Voronoi and study the evolution of the polygon areas for each point.
Walter Roberson
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 CenterFile Exchange 中查找有关 Voronoi Diagram 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by