How to use voronoi in specific area and determine the co-ordinate in each area?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
AniCnx
am 19 Dez. 2017
Kommentiert: AniCnx
am 20 Dez. 2017
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.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 19 Dez. 2017
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Voronoi Diagram finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!