How to create an adjacency matrix from an image??

24 ビュー (過去 30 日間)
Abhishek Bose
Abhishek Bose 2015 年 7 月 15 日
回答済み: Muhammad Usman Saleem 2016 年 6 月 30 日
I have an image of an arena with intersecting rgb colored lines. The point of intersection is white in colour.the rgb strips have weights (cost).I want to to find the shortest path from one corner of the arena to another using an algorith like djiktra's. how do i create the adjacency matrix using image proc, with the white intersection juctions as node?
  1 件のコメント
Niklas D
Niklas D 2016 年 6 月 30 日
Hey, I've got a similar problem, generating the adjacency matrix from an image. I try to detect intersections or rather forks of an electric circuit (like the following picture)
Did you found out, how to get the adjacency matrix from an image?
Thanks in advance!

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

回答 (1 件)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 6 月 30 日
dears;
Have you try these links
https://www.mathworks.com/matlabcentral/answers/217894-generate-a-weighted-graph-and-an-adjacency-matrix-from-an-image-matrix
https://www.mathworks.com/matlabcentral/answers/81116-how-to-get-adjacent-matrix
https://www.mathworks.com/matlabcentral/fileexchange/5355-toolbox-graph/content/toolbox_graph/build_graph_from_image.m

カテゴリ

Help Center および File ExchangeDenoising and Compression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by