MATLAB Answers

How to extract the Voronoi cells that fall inside ROI ?

9 views (last 30 days)
AH15
AH15 on 31 Aug 2020
Commented: Rena Berman on 9 Oct 2020 at 16:52
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

Stephen Cobeldick
Stephen Cobeldick on 1 Sep 2020
Original question by Ali Ashkanani posted on 2020-09-01, retrieved from Google Cache:
How to extract the Voronoi cells that fall inside ROI ?
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 ?
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.

Community Treasure Hunt

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

Start Hunting!