How to create an adjacency matrix from an image??
조회 수: 24 (최근 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
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
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
http://stackoverflow.com/questions/30578865/how-to-build-a-graph-of-connected-components-of-an-image
https://www.mathworks.com/matlabcentral/fileexchange/5355-toolbox-graph/content/toolbox_graph/build_graph_from_image.m
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Denoising and Compression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!