Emgu CV Library Documentation
DIST_TYPE Enumeration
NamespacesEmgu.CV.CvEnumDIST_TYPE

www.emgu.com/wiki
Defines for Distance Transform
Declaration Syntax
C#Visual BasicVisual C++
public enum DIST_TYPE
Public Enumeration DIST_TYPE
public enum class DIST_TYPE
Members
MemberDescription
CV_DIST_USER
User defined distance

CV_DIST_L1
distance = |x1-x2| + |y1-y2|

CV_DIST_L2
the simple euclidean distance

CV_DIST_C
distance = max(|x1-x2|,|y1-y2|)

CV_DIST_L12
L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))

CV_DIST_FAIR
distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998

CV_DIST_WELSCH
distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846

CV_DIST_HUBER
distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)