Table of Contents

Enum DistanceType

Namespace
Emgu.CV.Features2D
Assembly
Emgu.CV.dll

The match distance type

[Flags]
public enum DistanceType

Fields

Hamming = L1 | L2

Hamming distance functor - counts the bit differences between two strings - useful for the Brief descriptor, bit count of A exclusive XOR'ed with B.

Hamming2 = Inf | Hamming

Hamming distance functor - counts the bit differences between two strings - useful for the Brief descriptor, bit count of A exclusive XOR'ed with B.

Inf = 1
L1 = 2

Manhattan distance (city block distance)

L2 = 4

Squared Euclidean distance

L2Sqr = Inf | L2

Euclidean distance

MinMax = 32

MinMax, flag

Relative = 8

Relative, flag

TypeMask = Inf | Hamming

bit-mask which can be used to separate norm type from norm flags