How to use voronoi in specific area and determine the co-ordinate in each area?

5 ビュー (過去 30 日間)
AniCnx
AniCnx 2017 年 12 月 19 日
コメント済み: AniCnx 2017 年 12 月 20 日
Hi all, I have task of using voronoi diagram. The task is segment area on image 512x512 and determine co-ordinate of the pixels in each area. How is possibly done on matlab function? Thank you.

採用された回答

Image Analyst
Image Analyst 2017 年 12 月 19 日
You can use
[vx,vy] = voronoi(...) % returns the finite vertices of the Voronoi edges in vx and vy.
Then create a mask from the cells
mask = poly2mask(......
Do it one cell at a time. Then use find() to get the coordinates for that cell:
[rows, columns] = find(mask);
  1 件のコメント
AniCnx
AniCnx 2017 年 12 月 20 日
Thank you very much for your suggestion, Image analyst. in case of voronoi, do matlab have line based voronoi? if not, how to apply point based of matlab to line based?

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

その他の回答 (0 件)

カテゴリ

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