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

It represents PrintCapture with Slap. More...

#include <PrintCapture.h>

Collaboration diagram for SlapCapture:

Public Member Functions

std::vector< std::shared_ptr< PrintSegment > > SegmentWith (PrintCaptureSegmentation &detector) final
 It segments slap 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< SlapCapture > Create (std::shared_ptr< Image > img, const HandPosition &hand, const PrintAttributes &pa=PrintAttributes(), std::shared_ptr< PrintExecutor > executor=GlobalPrintExecutor::Get())
 Constructor of SlapCapture.
static int CalculateGlobalAngle (const std::vector< std::shared_ptr< inno::PrintSegment > > &segments)
 Calculates the global angle of segmented prints.
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 HandPosition hand
 Provides given hand position.
const std::shared_ptr< Image > image
 Provides PrintCapture Image.
const PrintAttributes printAttributes
 Provides PrintCapture Image.

Detailed Description

It represents PrintCapture with Slap.

See Description with examples.

Member Function Documentation

◆ CalculateGlobalAngle()

int CalculateGlobalAngle ( const std::vector< std::shared_ptr< inno::PrintSegment > > & segments)
inlinestatic

Calculates the global angle of segmented prints.

Parameters
segmentssegmented prints
Exceptions
EnrollmentInvalidArgumentExceptionif the segments are empty
Returns
global angle calculated from all segmented prints

◆ 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() [1/2]

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

Constructor of PrintCapture.

Parameters
imgprint image, can contain one or more fingerprints to segment
paoptional PrintAttributes
executorPrintExecutor to use for PrintCapture functionality execution
Exceptions
NullArgumentExceptionwhen image is null
Returns
created PrintCapture object

References GlobalPrintExecutor::Get().

Referenced by ChangeDpiTo().

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

◆ Create() [2/2]

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

Constructor of SlapCapture.

Parameters
imgSlap image
handSlap position
paoptional PrintAttributes
executorPrintExecutor to use for PrintCapture functionality execution
Exceptions
NullArgumentExceptionwhen image is null
Returns
created SlapCapture object

References GlobalPrintExecutor::Get(), and hand.

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 slap capture.

It uses PrintDetector::Segment function to find print segments. It guess print segment position as described in PrintDetector::Segment function.

Parameters
detectorPrintDetector to detect PrintSegments in SlapCapture
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: