How to extract the Voronoi cells that fall inside ROI ?

2 visualizaciones (últimos 30 días)
AH15
AH15 el 31 de Ag. de 2020
Comentada: Rena Berman el 9 de Oct. de 2020
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 comentarios
Rik
Rik el 1 de Sept. de 2020
And here is a capture to the Wayback Machine as well.
Rena Berman
Rena Berman el 9 de Oct. de 2020
(Answers Dev) Restored edit

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 31 de Ag. de 2020
  1 comentario
KSSV
KSSV el 31 de Ag. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Voronoi Diagram en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by