roipoly
显示 更早的评论
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
2012-1-12
0 个投票
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
2012-1-12
Image Analyst
2012-1-12
I don't know what that means. How can you analyze a region using a Voronoi diagram?
Nicolas
2012-1-12
Walter Roberson
2012-1-12
Voronoi diagrams... aren't they the ones that go to infinity at the edges?
Image Analyst
2012-1-13
Why don't you just post your image to tinypic.com and tell us what you want to measure it it, rather than think up some random algorithm and see how it might be applied to your image?
Nicolas
2012-1-13
Image Analyst
2012-1-13
No, not all are infinite. But those that intersect the edges would go to infinity if they didn't get clipped by the edges of the diagram. Anyway, what do you think you want to do with the voronoi? Or better yet, what do want to do in your ROI?
Nicolas
2012-1-13
Walter Roberson
2012-1-13
It sounds to me like you should be working in the dual space from voronoi, namely the delaunay triangulation.
类别
在 帮助中心 和 File Exchange 中查找有关 Voronoi Diagram 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!