|
Enrollment 28.2.0
|
It holds all functions and data related to print manipulation. More...
#include <PrintCapture.h>
Public Member Functions | |
| 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. | |
| virtual std::vector< std::shared_ptr< PrintSegment > > | SegmentWith (PrintCaptureSegmentation &detector) |
| It segments print capture. | |
| 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< PrintCapture > | Create (std::shared_ptr< Image > img, const PrintAttributes &pa=PrintAttributes(), std::shared_ptr< PrintExecutor > executor=GlobalPrintExecutor::Get()) |
| Constructor of PrintCapture. | |
Public Attributes | |
| const std::shared_ptr< Image > | image |
| Provides PrintCapture Image. | |
| const PrintAttributes | printAttributes |
| Provides PrintCapture Image. | |
It holds all functions and data related to print manipulation.
|
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 Print::CalculateIntensity(), and image.
|
inlinenodiscard |
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.
|
inlinenodiscard |
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 of PrintCapture.
| img | print image, can contain one or more fingerprints to segment |
| pa | optional PrintAttributes |
| executor | PrintExecutor to use for PrintCapture functionality execution |
| NullArgumentException | when image is null |
References GlobalPrintExecutor::Get().
Referenced by ChangeDpiTo().
It crops image with given rectangle by default PrintCropConfiguration.
| rectangle | Rectangle to be cropped |
References CropPrint().
|
inlinenodiscardfinal |
It crops image with given rectangle and background color.
| rectangle | Rectangle to be cropped |
| cfg | configuration of print cropping |
References image.
Referenced by CropPrint().
|
inline |
It draws rounding boxes into PrintCapture.
| segments | detected segments |
| attr | ImageShapeAttributes of rounding boxes |
References image.
|
inlinevirtual |
It segments print capture.
It uses PrintDetector::Segment function to find print segments. It always returns segments without position. The user MUST assign position to segment via function PrintSegment::SetPosition to be possible to transform PrintSegment into Print.
| detector | PrintDetector to detect PrintSegments in PrintCapture |
| EnrollmentException | from PrintDetector |
Reimplemented in SlapCapture, and ThumbsCapture.
Referenced by SlapCapture::SegmentWith(), and ThumbsCapture::SegmentWith().
|
inlinefinalvirtual |
Function serializes print via provided Writer.
| writer | used to serialize PrintCapture. |
Implements Serializable.
References image, and printAttributes.