How to extract the Voronoi cells that fall inside ROI ?

1 view (last 30 days)
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 Comments
Rik
Rik on 1 Sep 2020
And here is a capture to the Wayback Machine as well.

Sign in to comment.

Answers (1)

KSSV
KSSV on 31 Aug 2020
  1 Comment
KSSV
KSSV on 31 Aug 2020
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

Sign in to comment.

Categories

Find more on Voronoi Diagram in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!