http://www.emgu.com
Defines for Distance Transform
Namespace: Emgu.CV.CvEnumAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax Public Enumeration DistType
public enum class DistType
Members
| Member name | Value | Description |
---|
| User | -1 |
User defined distance
|
| L1 | 1 |
distance = |x1-x2| + |y1-y2|
|
| L2 | 2 |
Simple euclidean distance
|
| C | 3 |
distance = max(|x1-x2|,|y1-y2|)
|
| L12 | 4 |
L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))
|
| Fair | 5 |
distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998
|
| Welsch | 6 |
distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846
|
| Huber | 7 |
distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345
|
See Also