NIST Fingerprint Image Quality 2
Fingerprint image quality assessment tool
nfiq2_fingerprintimagedata.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of NIST Fingerprint Image Quality (NFIQ) 2. For more
3  * information on this project, refer to:
4  * - https://nist.gov/services-resources/software/nfiq2
5  * - https://github.com/usnistgov/NFIQ2
6  *
7  * This work is in the public domain. For complete licensing details, refer to:
8  * - https://github.com/usnistgov/NFIQ2/blob/master/LICENSE.md
9  */
10 
11 #ifndef NFIQ2_FINGERPRINTIMAGEDATA_HPP_
12 #define NFIQ2_FINGERPRINTIMAGEDATA_HPP_
13 
14 #include <nfiq2_data.hpp>
15 
16 namespace NFIQ2 {
17 
22 class FingerprintImageData : public Data {
23  public:
25  static const uint16_t Resolution500PPI { 500 };
26 
29 
44  uint32_t width, uint32_t height, uint8_t fingerCode, uint16_t ppi);
45 
64  FingerprintImageData(const uint8_t *pData, uint32_t dataSize,
65  uint32_t width, uint32_t height, uint8_t fingerCode, uint16_t ppi);
66 
69 
72 
74  uint32_t width { 0 };
76  uint32_t height { 0 };
78  uint8_t fingerCode { 0 };
80  uint16_t ppi { Resolution500PPI };
81 
95 };
96 } // namespace NFIQ
97 
98 #endif /* NFIQ2_FINGERPRINTIMAGEDATA_HPP_ */
Binary data.
Definition: nfiq2_data.hpp:23
Binary data representing a decompressed fingerprint image, canonically encoded as per ISO/IEC 19794-4...
FingerprintImageData(const FingerprintImageData &otherData)
Copy constructor.
FingerprintImageData(const uint8_t *pData, uint32_t dataSize, uint32_t width, uint32_t height, uint8_t fingerCode, uint16_t ppi)
Constructor storing image data.
uint32_t width
Width of the fingerprint image in pixels.
uint16_t ppi
Pixels per inch of the fingerprint image.
uint32_t height
Height of the fingerprint image in pixels.
NFIQ2::FingerprintImageData copyRemovingNearWhiteFrame() const
Obtain a copy of the image with near-white lines surrounding the fingerprint removed.
FingerprintImageData(uint32_t width, uint32_t height, uint8_t fingerCode, uint16_t ppi)
Constructor that does not store image data.
uint8_t fingerCode
ISO finger code of the fingerprint in the image.
FingerprintImageData()
Default constructor.
static const uint16_t Resolution500PPI
500 PPI resolution.
virtual ~FingerprintImageData()
Destructor.
Classes and functions that contribute to the calculation of NFIQ 2 quality scores.
Definition: nfiq2.hpp:97