11#ifndef NFIQ2_ALGORITHM_HPP_
12#define NFIQ2_ALGORITHM_HPP_
21#include <unordered_map>
50 Algorithm(
const std::string &fileName,
const std::string &fileHash);
132 const std::unordered_map<std::
string,
double> &features) const;
154 static std::unordered_map<std::
string,
unsigned int>
156 &nativeQualityMeasureValues);
180 const
double nativeQualityMeasureValue);
Applies trained random forest parameters to native quality measures, computing a unified quality scor...
Algorithm()
Default constructor of Algorithm.
unsigned int getEmbeddedFCT() const
Obtain the friction ridge capture technology (FCT) specified for the embedded random forest parameter...
Algorithm(const std::string &fileName, const std::string &fileHash)
Constructor that loads random forest parameters from disk.
Algorithm(const Algorithm &)
Copy constructor.
std::string getParameterHash() const
Obtain MD5 checksum of random forest parameter file loaded.
bool isInitialized() const
Determine if random forest parameters have been loaded.
Algorithm(const NFIQ2::ModelInfo &modelInfoObj)
Constructor using NFIQ2::ModelInfo to initialize the random forest.
Algorithm(Algorithm &&) noexcept
Move constructor.
bool isEmbedded() const
Obtain if the random forest parameters are embedded in the library or located externally.
Algorithm & operator=(const Algorithm &)
Assignment operator.
Binary data representing a decompressed fingerprint image, canonically encoded as per ISO/IEC 39794-4...
Information about a random forest parameter model.
unsigned int computeUnifiedQualityScore(const NFIQ2::FingerprintImageData &rawImage) const
Compute a unified quality score.
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.
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.
Classes and functions that contribute to the calculation of unified quality scores.