Generate the adjacency matrix from a superpixel matrix

2 views (last 30 days)
Hi friends,
i have an image matrix, after i apply my algorithm of superpixel to oubtain the labeled matrix and i want to generate the adjacency matrix from this labeled image, my code is like that:
I=imread(myimage);
SP=superpixelalgo(I);
How i can generate the adjacency matrix from SP, i want somthing like that:

Answers (0)

Community Treasure Hunt

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

Start Hunting!