Applies trained random forest parameters to native quality measures, computing a unified quality score.
More...
#include <nfiq2_algorithm.hpp>
|
static std::unordered_map< std::string, unsigned int > | getQualityBlockValues (const std::unordered_map< std::string, double > &nativeQualityMeasureValues) |
| Obtain the quality block values (i.e., [0, 100]) for the native quality measure values.
|
|
static unsigned int | getQualityBlockValue (const std::string &nativeQualityMeasureIdentifier, const double nativeQualityMeasureValue) |
| Obtain the quality block value (i.e., [0, 100]) for the native quality measure value.
|
|
Applies trained random forest parameters to native quality measures, computing a unified quality score.
Definition at line 29 of file nfiq2_algorithm.hpp.
◆ Algorithm() [1/5]
NFIQ2::Algorithm::Algorithm |
( |
| ) |
|
Default constructor of Algorithm.
- Note
- May load from parameters compiled into source code, in which case this can be slow.
◆ Algorithm() [2/5]
NFIQ2::Algorithm::Algorithm |
( |
const std::string & | fileName, |
|
|
const std::string & | fileHash ) |
Constructor that loads random forest parameters from disk.
- Parameters
-
fileName | The file path containing the random forest model. |
fileHash | The md5 checksum of the provided file. |
◆ Algorithm() [3/5]
Constructor using NFIQ2::ModelInfo to initialize the random forest.
- Parameters
-
modelInfoObj | Contains the random forest model and information about it. |
◆ Algorithm() [4/5]
NFIQ2::Algorithm::Algorithm |
( |
const Algorithm & | | ) |
|
◆ Algorithm() [5/5]
◆ ~Algorithm()
NFIQ2::Algorithm::~Algorithm |
( |
| ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ getParameterHash()
std::string NFIQ2::Algorithm::getParameterHash |
( |
| ) |
const |
Obtain MD5 checksum of random forest parameter file loaded.
- Returns
- MD5 checksum of the random forest parameter file loaded.
- Exceptions
-
Exception | Called before random forest parameters were loaded. |
◆ isInitialized()
bool NFIQ2::Algorithm::isInitialized |
( |
| ) |
const |
Determine if random forest parameters have been loaded.
- Returns
- true if some set of random forest parameters have been loaded, false otherwise.
◆ isEmbedded()
bool NFIQ2::Algorithm::isEmbedded |
( |
| ) |
const |
Obtain if the random forest parameters are embedded in the library or located externally.
- Returns
- true if random forest parameters are embedded, false otherwise.
◆ getEmbeddedFCT()
unsigned int NFIQ2::Algorithm::getEmbeddedFCT |
( |
| ) |
const |
Obtain the friction ridge capture technology (FCT) specified for the embedded random forest parameters.
- Returns
- Embedded FCT specified.
- Exceptions
-
The documentation for this class was generated from the following file: