|
Enrollment 28.2.0
|
It holds all functions and data related to print manipulation. More...
#include <Print.h>
Public Member Functions | |
| std::shared_ptr< Print > | ChangeDpiTo (ImageDpi targetDpi) const |
| Create new Print with given DPI. | |
| std::shared_ptr< Print > | ChangeDpiTo (const Image::ImageResampler &resampler) const |
| Create new Print using provided DPI-change configuration. | |
| std::vector< uint8_t > | ToIsoImage (ImageEncoder &encoder) const |
| Function creates ISO image based on ISO/IEC 19794-4 (Finger image data). | |
| std::vector< uint8_t > | ToIsoRawImage () const |
| Function creates ISO image based on ISO/IEC 19794-4 (Finger image data) use RawImage. | |
| uint8_t | CalculatePresence () |
| Function calculates fingerprint presence on the fingerprint scanner surface. | |
| uint8_t | CalculateNFIQ1 () |
| Function calculates NFIQ score (quality score defined by NIST) of the fingerprint image. | |
| uint8_t | CalculateNFIQ2 () |
| Function calculates NFIQ2 score (quality score defined by NIST) of the fingerprint image. | |
| uint8_t | CalculateImageQuality () |
| Function calculates Image quality of the input fingerprint image. | |
| uint8_t | CalculatePlacement () |
| Function calculates the finger placement quality of the input fingerprint image. | |
| uint8_t | CalculateIntensity () |
| Function calculates the image intensity. | |
| std::shared_ptr< Image > | DrawMinutiae (const std::vector< std::shared_ptr< Minutia > > &minutiae, const ImageShapeAttributes &attr) const |
| Draws minutiae on image. | |
| std::shared_ptr< Image > | DrawCriticalPoints (const std::vector< std::shared_ptr< CriticalPoint > > &points, const ImageShapeAttributes &attr) const |
| Draws critical points on skeleton image. | |
| void | WriteTo (Writer &writer) const final |
| Function serializes print via provided Writer. | |
| bool | IsSameAs (const Print &print) const |
| Returns true when argument is same object. | |
| bool | operator== (const Print &f) const |
| Compares if Print is equal with other one. | |
| bool | operator!= (const Print &f) const |
| Compares if Print is not equal with other one. | |
Static Public Member Functions | |
| static std::shared_ptr< Print > | FromIsoImage (const std::vector< uint8_t > &isoImage) |
| Function creates shared pointer of the Print object from ISO image based on ISO/IEC 19794-4 (Finger image data). | |
| static uint8_t | CalculateIntensity (const std::shared_ptr< inno::Image > &image, std::shared_ptr< PrintExecutor > &executor) |
| Function calculates the image intensity. | |
| static std::shared_ptr< Print > | Create (std::shared_ptr< Image > img, const PrintPosition &position, const PrintAttributes &pa=PrintAttributes(), std::shared_ptr< PrintExecutor > executor=GlobalPrintExecutor::Get()) |
| Constructor creates Print object. | |
Public Attributes | |
| const std::shared_ptr< Image > | image |
| Provides Print Image. | |
| const PrintPosition | position |
| Provides Print position. | |
| const PrintAttributes | printAttributes |
| Provides PrintCapture Image. | |
It holds all functions and data related to print manipulation.
|
inline |
Function calculates Image quality of the input fingerprint image.
Image quality number is calculated in accordance with the general guidelines contained in Section 7.2.5 of ANSI/INCITS 381 standard (Section 8.3.7.3 Quality score of ISO/IEC 19794-4 international standard). the value is available in serialization.
| EnrollmentException | when fails to calculate image quality. |
References image.
|
inline |
Function calculates the image intensity.
The intensity value is low for dry fingerprints (and for low pressure prints) and high for wet fingerprints (or for high pressure prints).
| EnrollmentException | when fails to calculate intensity |
References CalculateIntensity(), and image.
Referenced by CalculateIntensity(), and PrintCapture::CalculateIntensity().
|
inlinestatic |
Function calculates the image intensity.
The intensity value is low for dry fingerprints (and for low pressure prints) and high for wet fingerprints (or for high pressure prints).
| EnrollmentException | when fails to calculate intensity |
| image | image to analyze |
| executor | print executor |
References image.
|
inline |
Function calculates NFIQ score (quality score defined by NIST) of the fingerprint image.
This image quality number is calculated in accordance with the general guidelines contained in Section 7.2.5 of ANSI/INCITS 381 standard (Section 8.3.7.3 Quality score of ISO/IEC 19794-4 international standard). the value is available in serialization.
| EnrollmentException | when fails to calculate NFIQ1 |
References image.
|
inline |
Function calculates NFIQ2 score (quality score defined by NIST) of the fingerprint image.
This image quality number is calculated in accordance with the general guidelines contained in Section 7.2.5 of ANSI/INCITS 381 standard (Section 8.3.7.3 Quality score of ISO/IEC 19794-4 international standard). the value is available in serialization. The NFIQ2 version is 2.3.0.
| EnrollmentException | when fails to calculate NFIQ2 |
| InvalidImageArgumentException | when print image has different DPI as 500. |
References DefaultDpi, and image.
|
inline |
Function calculates the finger placement quality of the input fingerprint image.
The placement score number ranges from 0 to 100 and represents the fitness of the finger placement, evaluated with respect to the detected fingerprint classification (arch, loop, whorl), the value is available in serialization.
| EnrollmentException | when fails to calculate placement |
References image.
|
inline |
Function calculates fingerprint presence on the fingerprint scanner surface.
Image quality number is calculated as an area where presence of fingerprint is detected. This function does not measure quality of the presented fingerprint pattern.Presence value is calculated from the fingerprint image, the value is available in serialization.
| EnrollmentException | when fails to calculate presence |
References image.
|
inlinenodiscard |
Create new Print using provided DPI-change configuration.
It creates new print with changed image dpi by function Image::ChangeDpiTo() and with same position and attributes using a DPI-change configuration.
| resampler | image resampler |
| ImageException | when there is an processing error |
| EnrollmentInvalidArgumentException | when resize algorithm is NIST and print image is not single-channel grayscale |
References Create(), image, position, and printAttributes.
Create new Print with given DPI.
It creates new print with changed image dpi by function Image::ChangeDpiTo() and with same position and attributes. The function uses Standard resizing algorithm. See BicubicImageResampler.
| targetDpi | DPI of new print. |
| ImageException | when it is not possible to change image DPI |
| EnrollmentInvalidArgumentException | when targetDpi is 0 |
References ChangeDpiTo().
Referenced by ChangeDpiTo().
|
inlinestatic |
Constructor creates Print object.
| img | print image |
| position | PrintPosition |
| pa | PrintAttributes |
| executor | PrintExecutor to use for Print functionality execution |
| NullArgumentException | when executor is null |
| NullArgumentException | when image is null |
References GlobalPrintExecutor::Get(), and position.
Referenced by ChangeDpiTo(), FromIsoImage(), and PrintSegment::ToPrint().
|
inlinenodiscard |
Draws critical points on skeleton image.
| points | critical points to be drawn |
| attr | ImageShapeAttributes of minutiae |
References image.
|
inlinenodiscard |
Draws minutiae on image.
| minutiae | Minutiae to be drawn |
| attr | ImageShapeAttributes of minutiae |
References image.
|
inlinestatic |
Function creates shared pointer of the Print object from ISO image based on ISO/IEC 19794-4 (Finger image data).
| isoImage | ISO image from ISO/IEC 19794-4 (Finger image data) |
| ImageException | when type is not supported or image data are corrupted |
| EnrollmentInvalidArgumentException | when it is not possible to decode image |
| EnrollmentInvalidArgumentException | for invalid conversion from ISO to PrintPosition |
| EnrollmentInvalidArgumentException | for invalid conversion from ISO to PrintImpression |
| EnrollmentInvalidArgumentException | for invalid conversion from ISO to PrintCaptureDeviceTechnology |
| NotSupportedException | when horizontal and vertical image dpi is different |
| NotSupportedException | when bit depth for raw image is not 8 |
References Create(), Image::Decode(), Image::DecodeRawImage(), ImageDpi::FromDPCM(), RawImage::GRAYSCALE, IsoToPrintCaptureDeviceTechnology(), IsoToPrintImpression(), IsoToPrintPosition(), position, PrintAttributes::SetCaptureDeviceTechnology(), PrintAttributes::SetCaptureDeviceTypeID(), PrintAttributes::SetCaptureDeviceVendorID(), PrintAttributes::SetCertificationFlag(), and PrintAttributes::SetImpression().
|
inline |
Returns true when argument is same object.
| to check if it is reference to same object |
|
inline |
|
inline |
|
inline |
Function creates ISO image based on ISO/IEC 19794-4 (Finger image data).
The ISO standard specifies a data record interchange format for storing, recording, and transmitting the information from one or more finger or palm image areas [5]
| encoder | specific encoder for encoding Print image. Supported WSQ, JPG (lossy), JPEG 2000 (lossy & lossless), PNG |
| ImageException | when it is not possible to encode image |
| EnrollmentInvalidArgumentException | when encoder is not supported |
| EnrollmentRuntimeException | for invalid conversion size |
|
inline |
|
inlinefinalvirtual |
Function serializes print via provided Writer.
| writer | used to serialize Print. |
Implements Serializable.
References image, position, and printAttributes.