Hi every body;
I am trying to graph my binary 'labeled' image through (gplot) function, but to do such implementation i have to convert my binary matrix to adjacent matrix and get it's coordinates...
I don't know to make such operations?!
the function: gplot(A,Coordinates)
Can any one help me through that, Please
Thank you;

답변 (1개)

Matt J
Matt J 2013년 7월 4일

0 개 추천

Isn't your binary matrix (let's call it A) already an adjacency matrix? If so, you should be able to do as below. If not, what does A represent?
[i,j]=find(A);
gplot(A,[i,j]);

댓글 수: 1

Gayathri Nayar
Gayathri Nayar 2019년 5월 22일
But it plots line between every point in the matrix where there may not be a connection in the image. I mean to say that , in the image 2 points may not be connected using a straight line but can be connected using a curved line. then this code doesnot work the same

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

질문:

2013년 7월 4일

댓글:

2019년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by