PComparer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK.
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PObject.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PDescription;
21 class PMatchScore;
22 class PGuid;
23 
44 class PAPILLON_API_CORE PComparer : public PObject
45 {
46 public:
51  {
54  E_COMPARER_VECTOR_DISTANCE
55  };
56 
60  PComparer();
61 
65  PComparer(const PComparer& other);
66 
70  static PResult Create(PComparer& comparer, double threshold=-1.0);
71 
75  static PResult Create(PComparer::EComparerType type, PComparer& comparer, double threshold=-1.0);
76 
80  virtual ~PComparer();
81 
85  PComparer& operator=(const PComparer& other);
86 
90  PString GetName() const;
91 
95  PGuid GetId() const;
96 
101  PResult Compare(const PDescription& description1, const PDescription& description2, PMatchScore& matchScore) const;
102 };
103 
104 PAPILLON_END_NAMESPACE
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PDescription class represents a set of features that have been computed on an identity (it is a b...
Definition: PDescription.h:59
The PComparer class represents an algorithm used to compare two PDescription (typically two biometric...
Definition: PComparer.h:44
The PResult class represents the result returned by most of Papillon functions; this class is used to...
Definition: PResult.h:159
The PObject class is the root class of all Papillon classes; all PObject behaves like shared referenc...
Definition: PObject.h:27
The PMatchScore class is used to represent a score between two descriptions.
Definition: PMatchScore.h:27
The PGuid class represents a Globally Unique Identifier (GUID); PGuid instances are immutable (thread...
Definition: PGuid.h:28
EComparerType
All the available comparers.
Definition: PComparer.h:50
Class PObject: the root class of all Papillon classes.
PObject & operator=(const PObject &obj)
Performs a shared copy of other to this object.
Definition: PObject.h:45