Functions | |
VImage | VCDT3d (VImage src, VImage dest, VLong inside, VLong outside, VLong obstacle, VRepnKind repn) |
Perform Chamfer distance transform in 3D while avoiding obstacles, i.e. get distance from each "inside" point to closest "outside" point while avoiding "obstacle" points. The distance is measured as the length of the shortest path to the closest outside point that does not touch an obstacle point.
VImage VCDT3d | ( | VImage | src, | |
VImage | dest, | |||
VLong | inside, | |||
VLong | outside, | |||
VLong | obstacle, | |||
VRepnKind | repn | |||
) |
src | input image (VUByte) | |
dest | output image (VFloat) | |
inside | ubyte value representing inside voxels | |
outside | ubyte value representing outside voxels | |
obstacle | ubyte value representing obstacle voxels | |
repn | output pixel repn (VShortRepn or VFloatRepn) |