How to extract the Voronoi cells that fall inside ROI ?

2 次查看(过去 30 天)
Hello,
if I have a Voronoi diagram and a specified region of interest ROI which is a part of this Voronoi diagram, how can I extract the cells that fall inside this ROI ?
  3 个评论

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2020-8-31
  1 个评论
KSSV
KSSV 2020-8-31
I you know the indices cant you get the coordinates? Pick the logical indices of points lying inside the ROI. Use
P = [x(idx) y(idx)] ; % assuming x, y are column vectors

请先登录,再进行评论。

类别

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