MATLAB Answers


Return index output of bwdistgeodesic?

Asked by Eric Chadwick on 14 May 2019
Latest activity Commented on by Shivam Sardana on 4 Jun 2019
As the title reads, I would like to use bwdistgeodesic by providing a volume and seed locations. Currently, this function returns the distance to the nearest seed location, but no the index. Does anyone know a way to return the nearest seed index?


Sign in to comment.

1 Answer

Answer by Shivam Sardana on 22 May 2019

bwdistgeodesic function does not return nearest index to point. If you want to get index, use bwdist. You can refer to this documentation link for bwdist:


Thank you for your answer, but the point of my question is that I would like to know if there is a way to retrieve the index from bwdistgeodesic as I want the geodesic closest point to my source points but still be bounded by the boundaries of my voxels.
According to bwdistgeodesic documentation, there is no way you can retrieve the index.

Sign in to comment.