it really would have helped if the bmorph(bw, 'branchpoints')function returned more information. Basically my guess is that because the branch points were found from a mask that just iterates through each pixel, it doesn't record the order of the branch connections.
Find branches in a skeleton?
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
When you make a skeleton from a binary image you can extract branch points. However I m trying to find out which branch points are connected to which. I can find the index of the branch points. So I have a skeleton with labeled branch points and I can physically view the nodes that are connected to one another but I cannot seem to generate these connections in code? eg branch point 3 is connected to branch point 5.
6 comentarios
Walter Roberson
el 6 de Ag. de 2017
karishma singh: which code was it that you ran? None of the code that is posted in this Question calls Preprocess or defines a variable named the_out ?
karishma singh
el 8 de Ag. de 2017
Preprocess.m is just my file name. I ran the code posted by Ronan using my skeleton image.
Respuestas (1)
Image Analyst
el 15 de Sept. de 2015
I think you'll need to get an image of just the branch points. Then an image of just the branches with the branchpoints removed. Then pick two branchpoints to test and make an image with just those two. Then put in each branch one at a time and call bwdistgeodesic() to see if they're connected by that branch.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!