DistanceType Enumeration OpenCvSharp Class Library
Type of distance for cvDistTransform

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public enum DistanceType
Members

  Member nameValueDescription
User-1 User defined distance [CV_DIST_USER]
L11 distance = |x1-x2| + |y1-y2| [CV_DIST_L1]
L22 the simple euclidean distance [CV_DIST_L2]
C3 distance = max(|x1-x2|,|y1-y2|) [CV_DIST_C]
L124 L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1)) [CV_DIST_L12]
Fair5 distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998 [CV_DIST_FAIR]
Welsch6 distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846 [CV_DIST_WELSCH]
Huber7 distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345 [CV_DIST_HUBER]
See Also

Reference