PComparer Class Reference

Detailed Description

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

dot_inline_dotgraph_9.png

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 PComparer::~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]

static PResult PComparer::Create ( PComparer comparer,
double  threshold = -1.0 
)
static

Creates the default comparer set to E_COMPARER_VECTOR_CORRELATION.

◆ Create() [2/2]

static PResult PComparer::Create ( PComparer::EComparerType  type,
PComparer comparer,
double  threshold = -1.0 
)
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.

◆ operator=()

PComparer& PComparer::operator= ( const PComparer other)

Performs a shared copy of other to this object.