Slap Fingerprint Segmentation Evaluation III
API for participating in NIST's evaluation of slap fingerprint segmentation algorithms.
libslapsegiii.cpp
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#include <slapsegiii.h>
12
14 const int32_t x,
15 const int32_t y)
16 noexcept :
17 x{x},
18 y{y}
19{
20
21}
22
24 const Code code,
25 const std::string &message) :
26 code{code},
27 message{message}
28{
29
30}
31
33{
34
35}
36
39 const Coordinate &tl,
40 const Coordinate &tr,
41 const Coordinate &bl,
42 const Coordinate &br,
43 const Result result) :
44 frgp{frgp},
45 tl{tl},
46 tr{tr},
47 bl{bl},
48 br{br},
50{
51
52}
53
55{
56
57}
58
60 const uint16_t width,
61 const uint16_t height,
62 const uint16_t ppi,
63 const Kind kind,
64 const CaptureTechnology captureTechnology,
65 const Orientation orientation,
66 const std::vector<std::byte> &pixels) :
67 width{width},
68 height{height},
69 ppi{ppi},
70 kind{kind},
71 captureTechnology{captureTechnology},
72 orientation{orientation},
73 pixels{pixels}
74{
75
76}
77
79{
80
81}
82
84 const std::string &libraryIdentifier,
85 const uint16_t version,
86 const std::string &marketingIdentifier) :
87 version(version),
88 libraryIdentifier(libraryIdentifier),
89 marketingIdentifier(marketingIdentifier)
90{
91
92}
93
95 const Code code,
96 const std::set<SlapImage::Deficiency> &imageDeficiencies,
97 const std::string &message) :
98 code{code},
99 imageDeficiencies{imageDeficiencies},
100 message{message}
101{
102
103}
104
106{
107
108}
virtual ~Interface()
Destructor.
FrictionRidgeGeneralizedPosition
Friction ridge generalized position.
Definition: slapsegiii.h:48
A 2D coordinate, assuming an origin at the top left.
Definition: slapsegiii.h:75
Coordinate(const int32_t x=0, const int32_t y=0) noexcept
Coordinate constructor.
ReturnStatus(const Code code=Code::Success, const std::set< SlapImage::Deficiency > &imageDeficiencies={}, const std::string &message="")
ReturnStatus constructor.
Code
Possible exit status of a SlapSegIII API method.
Definition: slapsegiii.h:317
An individual segmentation position discovery.
Definition: slapsegiii.h:222
Result(const Code code=Code::Success, const std::string &message="")
Result constructor.
Code
Possible results of segmenting a single finger.
Definition: slapsegiii.h:225
Coordinate bl
Bottom-left coordinate, where bottom refers to distal interphalangeal joint of the fingerprint.
Definition: slapsegiii.h:302
SegmentationPosition()
Default SegmentationPosition constructor.
Coordinate tr
Top-right coordinate, where top refers to the top of the fingerprint.
Definition: slapsegiii.h:297
Coordinate tl
Top-left coordinate, where top refers to the top of the fingerprint.
Definition: slapsegiii.h:292
FrictionRidgeGeneralizedPosition frgp
Friction ridge generalized position.
Definition: slapsegiii.h:287
Result result
Result of segmentation position discovery.
Definition: slapsegiii.h:309
Coordinate br
Bottom-right coordinate, where bottom refers to distal interphalangeal joint of the fingerprint.
Definition: slapsegiii.h:307
SlapImage()
Default SlapImage constructor.
Orientation
Hand orientation being segmented.
Definition: slapsegiii.h:124
CaptureTechnology
Friction ridge capture technology.
Definition: slapsegiii.h:113
Kind
Kind of slap image.
Definition: slapsegiii.h:100
SubmissionIdentification()
Default constructor.