Enum DistanceTypes
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Type of distance for cvDistTransform
[SuppressMessage("Microsoft.Design", "CA1717: Only FlagsAttribute enums should have plural names")]
public enum DistanceTypes
Fields
C = 3distance = max(|x1-x2|,|y1-y2|) [CV_DIST_C]
Fair = 5distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998 [CV_DIST_FAIR]
Huber = 7distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345 [CV_DIST_HUBER]
L1 = 1distance = |x1-x2| + |y1-y2| [CV_DIST_L1]
L12 = 4L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1)) [CV_DIST_L12]
L2 = 2the simple euclidean distance [CV_DIST_L2]
User = -1User defined distance [CV_DIST_USER]
Welsch = 6distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846 [CV_DIST_WELSCH]