PComparer Class Reference

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.


selected by default


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 ( )

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 

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 

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.