フィルターのクリア

How to determine the Voronoi center coordinates knowing ?

6 ビュー (過去 30 日間)
mika
mika 2014 年 6 月 17 日
編集済み: mika 2014 年 6 月 23 日
I have a skeleton of a road network and i want to estimate the cùenter of eacùh cell of the voronoi diagram
below the image
any ideas please !
thx
  2 件のコメント
Sean de Wolski
Sean de Wolski 2014 年 6 月 17 日
So you want to calculate the voronoi diagram of the end points and then find the centers? I'm not totally clear on how you want to get from the above image to your centroids.
mika
mika 2014 年 6 月 23 日
i want to determine each voronoi cell by connecting the missed segment
mentioned in yellow
but first i have to determine the centroid of each cell to calculate the
delaunay triangulation to estimate the missed segment because they present
the bisector of each segment in the voronoi diagramme
below the result that i want
any ideas please to determine the centroid knowing that i have the ending points coordinates and the segments coordinates!
thx

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

回答 (1 件)

Jason Nicholson
Jason Nicholson 2014 年 6 月 18 日
編集済み: Jason Nicholson 2014 年 6 月 18 日
This does not deal with the inf's. You will have to replace the infinities with finite values on your boundary to get a better center estimation.
X = rand(10,2);
[V,C] = voronoin(X);
xCenter = cellfun(@(index) mean(V(index,1)),C);
yCenter = cellfun(@(index) mean(V(index,2)),C);
  1 件のコメント
mika
mika 2014 年 6 月 23 日
編集済み: mika 2014 年 6 月 23 日
i have segments coordiantes and ending points coordinates and vertices but not C like the image show
how to deal with to estimate the centroid of each cell
thx

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

カテゴリ

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