How to extract the Voronoi cells that fall inside ROI ?

2 visualizzazioni (ultimi 30 giorni)
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 Commenti
Rik
Rik il 1 Set 2020
And here is a capture to the Wayback Machine as well.

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 31 Ago 2020
  1 Commento
KSSV
KSSV il 31 Ago 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

Accedi per commentare.

Categorie

Scopri di più su Voronoi Diagram in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by