DIPlib Documentation - ©1995-2014 Quantitative Imaging Group, Delft University of Technology.

VectorDistanceTransform

Euclidean vector distance transform

SYNOPSIS

#include "dip_distance.h"

dip_Error dip_VectorDistanceTransform ( in, outx, outy, outz, distance, border, method )

DATA TYPES

binary

FUNCTION

This function produces the vector components of the Euclidean distance transform. These are stored in the output images, one for each dimension of the input image. See the EuclideanDistanceTransform for detailed information about the parameters.

To compute the Euclidean distance from the vector compoments produced by this function, one needs to multiply each componemt with the sampling distance, square the result, sum the results for all components and take the square root of the sum.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageArrayoutOutput images
dip_FloatArraydistanceSampling distances
dip_BooleanborderImage border type
dipf_DistanceTransformmethodTransform method

dipf_DistanceTransform defines the following distance transform types:

NameDescription
DIP_EDT_FASTfastest, but most errors
DIP_EDT_TIESslower, but fewer errors
DIP_EDT_TRUEslow, uses lots of memory, but is "error free"
DIP_EDT_BRUTE_FORCEgives a result from which errors are calculated for the other methods. This method is extremly slow and should only be used for testing purposes.

LITERATURE

See EuclideanDistanceTransform

KNOWN BUGS

See EuclideanDistanceTransform

AUTHOR

James C. Mullikin, adapted to DIPlib by Geert M.P. van Kempen

SEE ALSO

EuclideanDistanceTransform, GreyWeightedDistanceTransform