Template DB Used for storing fingerprint templates with its IDs.
More...
#include <matcher.h>
|
| virtual void | add (const NeuroDactyl::Template *_template, const long long id)=0 |
| |
| virtual void | add (unsigned int size, const char *data, const long long id)=0 |
| |
|
virtual void | clear ()=0 |
| | Clears the DB.
|
| |
|
virtual size_t | size ()=0 |
| | Number of templates in the DB.
|
| |
|
virtual size_t | maxSize () const =0 |
| | Max possible number of templates in the DB.
|
| |
|
virtual void | getLoadedIDs (std::vector< long long > &ids)=0 |
| | Returns ID list of loaded templates.
|
| |
|
virtual bool | isLoaded (const long long id)=0 |
| | Checks, if a template with specific ID is loaded to the DB.
|
| |
|
virtual void | save (const std::string &path)=0 |
| | Saves the DB to hard drive.
|
| |
| virtual void | matchK (const NeuroDactyl::Template *probe, unsigned int K, float threshold, std::vector< std::pair< long long, float >> &results)=0 |
| |
| virtual void | matchN (const NeuroDactyl::Template *probe, std::vector< float > &results, std::vector< long long > &ids)=0 |
| |
Template DB Used for storing fingerprint templates with its IDs.
◆ add() [1/2]
| virtual void NeuroDactyl::TemplateDB::add |
( |
const NeuroDactyl::Template * |
_template, |
|
|
const long long |
id |
|
) |
| |
|
pure virtual |
Loads a template to DB
- Parameters
-
| [in] | template0 | Fingerprint template |
| [in] | id | Fingerprint template ID |
- Exceptions
-
◆ add() [2/2]
| virtual void NeuroDactyl::TemplateDB::add |
( |
unsigned int |
size, |
|
|
const char * |
data, |
|
|
const long long |
id |
|
) |
| |
|
pure virtual |
Loads a serialized template to DB
- Parameters
-
| [in] | size | Data size |
| [in] | data | Data |
| [in] | id | Fingerprint template ID |
- Exceptions
-
◆ matchK()
| virtual void NeuroDactyl::TemplateDB::matchK |
( |
const NeuroDactyl::Template * |
probe, |
|
|
unsigned int |
K, |
|
|
float |
threshold, |
|
|
std::vector< std::pair< long long, float >> & |
results |
|
) |
| |
|
pure virtual |
TopK matching
- Parameters
-
| [in] | probe | Probe template |
| [in] | K | number of returning best matches |
| [in] | threshold | Matching threshold |
| [out] | results | Resulting pairs [ID, score] |
- Exceptions
-
◆ matchN()
| virtual void NeuroDactyl::TemplateDB::matchN |
( |
const NeuroDactyl::Template * |
probe, |
|
|
std::vector< float > & |
results, |
|
|
std::vector< long long > & |
ids |
|
) |
| |
|
pure virtual |
1 to N matching
- Parameters
-
| [in] | probe | Probe template |
| [out] | results | Resulting scores |
| [out] | ids | Matched template ids |
- Exceptions
-
The documentation for this class was generated from the following file: