distance on a surface from its boundaries

Hi all!
Im trying to calculate the geodesic distances on a smoothed 3D surface from its boundaries. The surface and boundary are attached.
I tried msfm3d, and fast marching methods without any success.
Would appreciate your assistance.
Thanks,
Gefen

Answers (1)

bwdist() does that.

5 Comments

Thank you for your help.
I couldn't manage to get the desired result with this function, can you please attach a code that does that?
Im aimming to something similar to the distances in the attaced image.
thank you very much,
Gefen
Image ref. :
Geodesics in Heat: A New Approach to Computing Distance Based on Heat Flow. KEENAN CRANE, CLARISSE WEISCHEDEL and MAX WARDETZKY
I'd need more than a 2-D rendering of a 3-D object. I'd need the actual volumetric 3-D array itself. Please attach it.
Probably I didn't explain myself properly, and the rabbit image I added confused more than helped. My object is a 2D rendering matrix of a curved plane or surface. So far I managed to calculate the projected 2D distances from the boundaries, by using msfm2d (I attached the projected 2D distances matrix). I need to calculate the 'real' 3D distances on the curved surface from its boundaries, with consideration of the height differences along the surface.
appriciate your help.
thanks, Gefen.
I need to compute the geodesic distance on the surface.
I don't know how to do that. Perhaps one of the shortestpath functions.

Sign in to comment.

Categories

Asked:

on 29 May 2021

Commented:

on 30 May 2021

Community Treasure Hunt

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

Start Hunting!