How to extract the Voronoi cells that fall inside ROI ?

2 ビュー (過去 30 日間)
AH15
AH15 2020 年 8 月 31 日
コメント済み: Rena Berman 2020 年 10 月 9 日
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 件のコメント
Rik
Rik 2020 年 9 月 1 日
And here is a capture to the Wayback Machine as well.
Rena Berman
Rena Berman 2020 年 10 月 9 日
(Answers Dev) Restored edit

サインインしてコメントする。

回答 (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 Center および File ExchangeVoronoi Diagram についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by