Enum DistType
Defines for Distance Transform
public enum DistType
Fields
C = 3
distance = max(|x1-x2|,|y1-y2|)
Fair = 5
distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998
Huber = 7
distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345
L1 = 1
distance = |x1-x2| + |y1-y2|
L12 = 4
L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))
L2 = 2
Simple euclidean distance
User = -1
User defined distance
Welsch = 6
distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846