retrieve original voronoi points from edges location
조회 수: 2 (최근 30일)
이전 댓글 표시
i perform page segmentation using Voronoi diagram , i generate the voronoi edges using the Voronoi command but the segmentation algorithm works by deleting the unnecessary edges like the shortest one.
therefore, i want to know which original points related to each edge ,so when i delete the unnecessary edges i could again generate the voronoi diagram from its corresponding points again? what should i do?
댓글 수: 0
답변 (1개)
Ronit
2025년 6월 3일
To keep track of which original input points correspond to each Voronoi edge, you should not use "voronoi" function, because it only returns plot data. Instead, use Delaunay triangulation, which gives you access to the dual graph structure of the Voronoi diagram and allows tracking of which sites (input points) are responsible for each Voronoi edge.
For more details, please refer to the documentaion page of "delaunayTriangulation" function: https://www.mathworks.com/help/matlab/ref/delaunaytriangulation.html
I hope this helps!
Thanks
댓글 수: 0
참고 항목
카테고리
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!