Enrollment 28.2.0
Loading...
Searching...
No Matches

It represents PrintCapture with ThumbsCapture. More...

#include <PrintCapture.h>

Collaboration diagram for ThumbsCapture:

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.

Detailed Description

Member Function Documentation

◆ CalculateIntensity()

uint8_t CalculateIntensity ( )
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).

Returns
image intensity in range 0 (lowest intensity, dry finger, low pressure) to 100 (highest intensity, wet finger, high pressure)
Exceptions
EnrollmentExceptionwhen fails to calculate intensity

References Print::CalculateIntensity(), and image.

Here is the call graph for this function:

◆ ChangeDpiTo() [1/2]

std::shared_ptr< PrintCapture > ChangeDpiTo ( const Image::ImageResampler & resampler) const
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.

Parameters
resamplerimage resampler
Returns
print capture with given DPI
Exceptions
ImageExceptionwhen there is an processing error
EnrollmentInvalidArgumentExceptionwhen resize algorithm is NIST and print capture image is not single-channel grayscale

References Create(), image, and printAttributes.

Here is the call graph for this function:

◆ ChangeDpiTo() [2/2]

std::shared_ptr< PrintCapture > ChangeDpiTo ( ImageDpi targetDpi) const
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.

Parameters
targetDpiDPI of new print.
Returns
print with target DPI
Exceptions
ImageExceptionwhen it is not possible to change image DPI
EnrollmentInvalidArgumentExceptionwhen targetDpi is 0

References ChangeDpiTo().

Referenced by ChangeDpiTo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Create()

std::shared_ptr< ThumbsCapture > Create ( std::shared_ptr< Image > img,
const PrintAttributes & pa = PrintAttributes(),
std::shared_ptr< PrintExecutor > executor = GlobalPrintExecutor::Get() )
inlinestatic

Constructor sets image and attributes of ThumbsCapture.

Parameters
imgThumbs image
paoptional PrintAttributes
executorPrintExecutor to use for PrintCapture functionality execution
Exceptions
NullArgumentExceptionwhen image is null
Returns
created ThumbsCapture object

References GlobalPrintExecutor::Get().

Here is the call graph for this function:

◆ CropPrint() [1/2]

std::shared_ptr< Image > CropPrint ( const Rectangle & rectangle) const
inlinenodiscardinherited

It crops image with given rectangle by default PrintCropConfiguration.

Parameters
rectangleRectangle to be cropped
Returns
cropped Image

References CropPrint().

Here is the call graph for this function:

◆ CropPrint() [2/2]

std::shared_ptr< Image > CropPrint ( const Rectangle & rectangle,
const PrintCropConfiguration & cfg ) const
inlinenodiscardfinalinherited

It crops image with given rectangle and background color.

Parameters
rectangleRectangle to be cropped
cfgconfiguration of print cropping
Returns
Image cropped image

References image.

Referenced by CropPrint().

Here is the caller graph for this function:

◆ Draw()

std::shared_ptr< Image > Draw ( const std::vector< std::shared_ptr< PrintSegment > > & segments,
const ImageShapeAttributes & attr ) const
inlineinherited

It draws rounding boxes into PrintCapture.

Parameters
segmentsdetected segments
attrImageShapeAttributes of rounding boxes
Returns
Image with drawn rounding boxes

References image.

◆ SegmentWith()

std::vector< std::shared_ptr< PrintSegment > > SegmentWith ( PrintCaptureSegmentation & detector)
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.

Parameters
detectorPrintDetector to detect PrintSegments in ThumbsCapture
Returns
detected print segments
Exceptions
EnrollmentExceptionfrom PrintDetector

Reimplemented from PrintCapture.

References PrintCapture::SegmentWith().

Here is the call graph for this function:

◆ WriteTo()

void WriteTo ( Writer & writer) const
inlinefinalvirtualinherited

Function serializes print via provided Writer.

Parameters
writerused to serialize PrintCapture.

Implements Serializable.

References image, and printAttributes.


The documentation for this class was generated from the following file: