|
Enrollment 28.2.0
|
Segment detected in print capture Usually the segment has also position that is assigned by segmentation algorithm. More...
#include <PrintSegment.h>
Public Member Functions | |
| bool | HasPosition () const |
| It checks if position is set. | |
| void | SetPosition (const PrintPosition &position) |
| Set the Position. | |
| PrintPosition | GetPosition () |
| Returns print position. | |
| std::shared_ptr< PrintSegment > | Resize (Rectangle::Width newWidth, Rectangle::Height newHeight) const |
| Create new segment with given width and height. | |
| std::shared_ptr< Print > | ToPrint () |
| It transforms segment to Print. | |
| std::shared_ptr< Print > | ToPrint (const PrintCropConfiguration &cfg) |
| It transforms segment to Print. | |
| void | WriteTo (Writer &writer) const final |
| Function serializes slap segment. | |
Public Attributes | |
| const Rectangle | roundingBox |
| Found rounding box of segmented fingertip. | |
Segment detected in print capture Usually the segment has also position that is assigned by segmentation algorithm.
In rare cases the segmentation algorithm does not detect position. Then it is necessary that user sets correct position to be possible to create Print for further processing.
|
inline |
Returns print position.
| EnrollmentRuntimeException | when no print position |
|
inline |
It checks if position is set.
|
inline |
Create new segment with given width and height.
The center and angle of segment will remain same.
| newWidth | new width of segment |
| newHeight | new height of segment |
References roundingBox.
|
inline |
Set the Position.
| position | PrintPosition of fingertip |
|
inline |
It transforms segment to Print.
Usually the segment has also position that is assigned by segmentation algorithm. In rare cases the segmentation algorithm does not detect position. Then it is necessary that user sets correct position to be possible to create Print for further processing. Default PrintCropConfiguration is used for cropping.
| EnrollmentException | when position is not set |
References ToPrint().
Referenced by ToPrint().
|
inline |
It transforms segment to Print.
Usually the segment has also position that is assigned by segmentation algorithm. In rare cases the segmentation algorithm does not detect position. Then it is necessary that user sets correct position to be possible to create Print for further processing.
| cfg | crop configuration |
| EnrollmentRuntimeException | when position is not set |
References Print::Create(), and roundingBox.
|
inlinefinalvirtual |
Function serializes slap segment.
| writer | used to serialize PrintSegment. |
Implements Serializable.
References roundingBox.