|
Enrollment 28.2.0
|
It represents PrintCapture with ThumbsCapture. More...
#include <PrintCapture.h>
Public Member Functions | |
| std::vector< std::shared_ptr< PrintSegment > > | SegmentWith (PrintCaptureSegmentation &detector) final |
| It segments thumbs capture. | |
| std::shared_ptr< PrintCapture > | ChangeDpiTo (ImageDpi targetDpi) const |
| Create new PrintCapture with given DPI. | |
| std::shared_ptr< PrintCapture > | ChangeDpiTo (const Image::ImageResampler &resampler) const |
| Create new PrintCapture using provided DPI-change configuration. | |
| std::shared_ptr< Image > | CropPrint (const Rectangle &rectangle, const PrintCropConfiguration &cfg) const final |
| It crops image with given rectangle and background color. | |
| std::shared_ptr< Image > | CropPrint (const Rectangle &rectangle) const |
| It crops image with given rectangle by default PrintCropConfiguration. | |
| std::shared_ptr< Image > | Draw (const std::vector< std::shared_ptr< PrintSegment > > &segments, const ImageShapeAttributes &attr) const |
| It draws rounding boxes into PrintCapture. | |
| void | WriteTo (Writer &writer) const final |
| Function serializes print via provided Writer. | |
| uint8_t | CalculateIntensity () |
| Function calculates the image intensity. | |
Static Public Member Functions | |
| static std::shared_ptr< ThumbsCapture > | Create (std::shared_ptr< Image > img, const PrintAttributes &pa=PrintAttributes(), std::shared_ptr< PrintExecutor > executor=GlobalPrintExecutor::Get()) |
| Constructor sets image and attributes of ThumbsCapture. | |
Public Attributes | |
| const std::shared_ptr< Image > | image |
| Provides PrintCapture Image. | |
| const PrintAttributes | printAttributes |
| Provides PrintCapture Image. | |
It represents PrintCapture with ThumbsCapture.
|
inlineinherited |
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 Print::CalculateIntensity(), and image.
|
inlinenodiscardinherited |
Create new PrintCapture using provided DPI-change configuration.
It creates new print with changed image dpi by function Image::ChangeDpiTo() and with same attributes using a DPI-change configuration.
| resampler | image resampler |
| ImageException | when there is an processing error |
| EnrollmentInvalidArgumentException | when resize algorithm is NIST and print capture image is not single-channel grayscale |
References Create(), image, and printAttributes.
|
inlinenodiscardinherited |
Create new PrintCapture 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 sets image and attributes of ThumbsCapture.
| img | Thumbs image |
| pa | optional PrintAttributes |
| executor | PrintExecutor to use for PrintCapture functionality execution |
| NullArgumentException | when image is null |
References GlobalPrintExecutor::Get().
It crops image with given rectangle by default PrintCropConfiguration.
| rectangle | Rectangle to be cropped |
References CropPrint().
|
inlinenodiscardfinalinherited |
It crops image with given rectangle and background color.
| rectangle | Rectangle to be cropped |
| cfg | configuration of print cropping |
References image.
Referenced by CropPrint().
|
inlineinherited |
It draws rounding boxes into PrintCapture.
| segments | detected segments |
| attr | ImageShapeAttributes of rounding boxes |
References image.
|
inlinefinalvirtual |
It segments thumbs capture.
It uses PrintDetector::Segment function to find print segments. It guess thumbs position. When 2 segments are detected then first is left and second is right thumb. Otherwise positions are unknown.
| detector | PrintDetector to detect PrintSegments in ThumbsCapture |
| EnrollmentException | from PrintDetector |
Reimplemented from PrintCapture.
References PrintCapture::SegmentWith().
|
inlinefinalvirtualinherited |
Function serializes print via provided Writer.
| writer | used to serialize PrintCapture. |
Implements Serializable.
References image, and printAttributes.