Person DB Used for storing persons with its IDs.
More...
#include <person.h>
|
| virtual void | add (const NeuroDactyl::Person *person, const unsigned int id)=0 |
| |
|
virtual void | clear ()=0 |
| | Clears the DB.
|
| |
|
virtual size_t | size ()=0 |
| | Number of templates in the DB.
|
| |
|
virtual size_t | maxSize ()=0 |
| | Max possible number of templates in the DB (person can have up to 10 templates)
|
| |
|
virtual unsigned int | personNum ()=0 |
| | Number of persons in the DB.
|
| |
|
virtual void | getLoadedIDs (std::vector< unsigned int > &ids)=0 |
| | Returns ID list of loaded persons.
|
| |
|
virtual bool | isLoaded (const unsigned int id)=0 |
| | Checks, if a person 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::Person *person, unsigned int K, float threshold, std::vector< std::pair< unsigned int, float >> &results)=0 |
| |
Person DB Used for storing persons with its IDs.
◆ add()
| virtual void NeuroDactyl::PersonDB::add |
( |
const NeuroDactyl::Person * |
person, |
|
|
const unsigned int |
id |
|
) |
| |
|
pure virtual |
Loads a person to DB
- Parameters
-
| [in] | person | person |
| [in] | id | person ID |
- Exceptions
-
◆ matchK()
| virtual void NeuroDactyl::PersonDB::matchK |
( |
const NeuroDactyl::Person * |
person, |
|
|
unsigned int |
K, |
|
|
float |
threshold, |
|
|
std::vector< std::pair< unsigned int, float >> & |
results |
|
) |
| |
|
pure virtual |
Person to person matching
- Parameters
-
| [in] | person | probe person |
| [in] | K | number of returning best matches |
| [in] | threshold | Matching threshold |
| [out] | results | Resulting pairs [ID, score] |
- Exceptions
-
The documentation for this class was generated from the following file:
- cpp/include/interface/neurodactyl/person.h