Enum DistanceType
Specifies the available types of distance functions.
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public enum DistanceType : int
Fields
Name | Description |
---|---|
C | Specifies the elementwise max distance. |
Fair | Specifies the Fair metric given by c^2(|x|/c-log(1+|x|/c)), c = 1.3998. |
Huber | Specifies the Huber metric given by distance = x^2/2 if |x| is less than c, else c(|x|-c/2), c=1.345. |
L1 | Specifies the L1 or Manhattan distance. |
L12 | Specifies the L1-L2 metric. |
L2 | Specifies the L2 or Euclidean distance. |
User | Specifies that a user defined distance should be used. |
Welsch | Specifies the Welsch metric given by distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846. |