Infinite Geodesic diameter

Hi I am trying to use Geodesic diameter tool in Morpholibj to measure retinal vessel lenght. I get an error saying some diameters are infinite. How can I fix it?

Also is there way to get numeric represantation of interactive geodesic distance map?

Thank you

Hi Damla,

one possible (and the most probable) explanation is that some labels within the image are disconnected. In that case, it is not possible to find a path from one component to another, and the geodesic distance within the label is set to infinity.

I suggest applying a connected component labeling algorith prior to computation of geodesic diameter. This should solve the problem.

Anotehr option would be to artificially reconnect the disconnected components, but this will highly depend on the nature of images.

Best,
David

2 Likes