Sampling nodes equally to cover all the environment
古いコメントを表示
if i have this binary image, and i would like to distributed nodes in
the white area, which is the best way can distributed nodes to cover all the environments equally?

4 件のコメント
Walter Roberson
2019 年 7 月 28 日
How is "covering" the environment "equally" defined ? Is it just pure line of sight, so a node carefully placed along the bottom a bit left of the right edge, could just "nick" the black part on line of sight to get at least 20% of the way up along the right-hand edge? Is it defined by distance, and if so does the black part block signals? Is it okay if there are points that are not covered? Is the task to find the mininum number of locations that somehow cover the white part? -- which is something that could fall apart if the black changed just a little?
mohammed alany
2019 年 7 月 28 日
Walter Roberson
2019 年 7 月 28 日
As a first attempt, you could find() the row, column positions of all of the white pixels. Arrange as row column pairs as rows [r1 c1; r2 c2; ...]. Now kmeans requesting 50 clusters.
mohammed alany
2019 年 7 月 28 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!