1 #ifndef NFIQ2_ALGORITHM_HPP_
2 #define NFIQ2_ALGORITHM_HPP_
11 #include <unordered_map>
40 Algorithm(
const std::string &fileName,
const std::string &fileHash);
98 std::shared_ptr<
NFIQ2::QualityFeatures::BaseFeature>> &features)
Applies trained random forest parameters to quality features, computing an overall quality score (i....
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.
unsigned int computeQualityScore(const NFIQ2::FingerprintImageData &rawImage) const
Computes the quality score from the provided fingerprint image data.
Algorithm & operator=(const Algorithm &)
Assignment operator.
Binary data representing a decompressed fingerprint image, canonically encoded as per ISO/IEC 19794-4...
Information about a random forest parameter model.
Classes and functions that contribute to the calculation of NFIQ2 scores.
This type represents a structure for quality feature data.