Detailed Description
The PComparer class represents an algorithm used to compare two PDescription (typically two biometric templates) and return a PMatchScore.

PComparer is constructed using factory constructors specific the object type you wish to compare (e.g. Face).
Definition at line 44 of file PComparer.h.
#include <PComparer.h>
Member Enumeration Documentation
◆ EComparerType
All the available comparers.
Enumerator | |
---|---|
E_COMPARER_VECTOR_CORRELATION | selected by default |
E_COMPARER_VECTOR_MEDIAN | |
E_COMPARER_VECTOR_DISTANCE |
Definition at line 50 of file PComparer.h.
Constructor & Destructor Documentation
◆ PComparer() [1/2]
PComparer::PComparer | ( | ) |
Constructs an empty comparer (do nothing); use PComparer::Create() factory to instantiate a comparer.
◆ PComparer() [2/2]
PComparer::PComparer | ( | const PComparer & | other | ) |
Constructs a shared copy of other.
◆ ~PComparer()
|
virtual |
Destroys this object.
Member Function Documentation
◆ Compare()
PResult PComparer::Compare | ( | const PDescription & | description1, |
const PDescription & | description2, | ||
PMatchScore & | matchScore | ||
) | const |
Applies this comparer on the two specified descriptions and retrieve a match score.
◆ Create() [1/2]
Creates the default comparer set to E_COMPARER_VECTOR_CORRELATION.
◆ Create() [2/2]
|
static |
Creates a comparer of the specified type (see PComparer::EComparerType).
◆ GetId()
PGuid PComparer::GetId | ( | ) | const |
Returns the unique Id of this comparer.
◆ GetName()
PString PComparer::GetName | ( | ) | const |
Returns the name of this comparer.