Can bwdistgeodesic be used on a 3D binary image?

3 views (last 30 days)
Hi,
I have a 3D binary image (effectively a cube) and I want to create a distance map of the image with the starting point(s) being one of the sides/faces of the cube (i.e. all the voxels present on that side of the cube; the subscripts of each of the starting voxels were appropriately identified using the 'ind2sub' function and the each voxel will have the coordinate (i,j,k) ). I tried using bwdistgeodesic but appears this function only supports 2D binary images and hence the starting point will be an edge of the cube rather than a face of the cube.
Please is there a way to make the starting point one of faces of the cube and can any of the cube faces be made the starting point?
Thanks

Answers (1)

Image Analyst
Image Analyst on 1 Jun 2014
I don't think bwdistgeodesic() can be used on 3D binary images. I recommend you use dynamic programming for what you want to do. http://en.wikipedia.org/wiki/Dynamic_programming#Checkerboard I did this for blood vessel tracking as part of my Ph.D. dissertation. (And no, I don't have that code for you to use.)

Categories

Find more on Biomedical Imaging in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!