NeuroDactyl
NeuroDactyl::TemplateDB Class Referenceabstract

Template DB Used for storing fingerprint templates with its IDs. More...

#include <matcher.h>

Public Member Functions

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
 

Detailed Description

Template DB Used for storing fingerprint templates with its IDs.

Member Function Documentation

◆ 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]template0Fingerprint template
[in]idFingerprint template ID
Exceptions
NeuroDactyl::Exceptionwhen the DB is full

◆ 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]sizeData size
[in]dataData
[in]idFingerprint template ID
Exceptions
NeuroDactyl::Exceptionwhen the DB is full

◆ 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]probeProbe template
[in]Knumber of returning best matches
[in]thresholdMatching threshold
[out]resultsResulting pairs [ID, score]
Exceptions
NeuroDactyl::Exceptionwhen memory is out

◆ 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]probeProbe template
[out]resultsResulting scores
[out]idsMatched template ids
Exceptions
NeuroDactyl::Exceptionwhen memory is out

The documentation for this class was generated from the following file: