Enrollment
28.2.0
Theme:
Default
Robot
Toggle main menu visibility
Loading...
Searching...
No Matches
IrisCaptureDeviceTechnology.h
Go to the documentation of this file.
1
9
10
#pragma once
11
#include "
enrollment/Exception/EnrollmentException.h
"
12
#include "enrollment/Export.h"
13
#include <ostream>
14
15
namespace
inno
16
{
21
*/
22
enum class
IrisCaptureDeviceTechnology
: uint8_t
23
{
25
UNKNOWN
= 0,
27
CMOS_CCD
= 1,
28
};
29
30
// The numbers are from ISO standard and are tested in unit tests.
31
// NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
32
39
*/
40
static
constexpr
int
IrisToIsoCaptureDeviceTechnology
(
IrisCaptureDeviceTechnology
printCaptureDeviceTechnology)
41
{
42
switch
(printCaptureDeviceTechnology)
43
{
44
case
IrisCaptureDeviceTechnology::UNKNOWN
:
45
return
0;
46
case
IrisCaptureDeviceTechnology::CMOS_CCD
:
47
return
1;
48
default
:
49
break
;
50
}
51
52
throw
EnrollmentInvalidArgumentException
(
"Invalid conversion from IrisCaptureDeviceTechnology to ISO"
);
53
}
54
61
*/
62
static
constexpr
IrisCaptureDeviceTechnology
IsoToIrisCaptureDeviceTechnology
(
int
isoCaptureDeviceTechnology)
63
{
64
switch
(isoCaptureDeviceTechnology)
65
{
66
case
0:
67
return
IrisCaptureDeviceTechnology::UNKNOWN
;
68
case
1:
69
return
IrisCaptureDeviceTechnology::CMOS_CCD
;
70
default
:
71
break
;
72
}
73
74
throw
EnrollmentInvalidArgumentException
(
"Invalid conversion from ISO to IrisCaptureDeviceTechnology"
);
75
}
76
// NOLINTEND(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
77
78
inline
std::ostream& operator<<(std::ostream& os,
IrisCaptureDeviceTechnology
printCaptureDeviceTechnology)
79
{
80
switch
(printCaptureDeviceTechnology)
81
{
82
case
IrisCaptureDeviceTechnology::UNKNOWN
:
83
os <<
"UNKNOWN"
;
84
break
;
85
case
IrisCaptureDeviceTechnology::CMOS_CCD
:
86
os <<
"CMOS_CCD"
;
87
break
;
88
}
89
return
os;
90
}
91
92
}
// namespace inno
EnrollmentException.h
EnrollmentInvalidArgumentException
Base exception for all enrollment-sdk invalid argument exceptions.
Definition
EnrollmentException.h:96
FaceCaptureDeviceTechnology::UNKNOWN
@ UNKNOWN
Unknown or Unspecified.
Definition
FaceCaptureDeviceTechnology.h:23
IrisToIsoCaptureDeviceTechnology
static constexpr int IrisToIsoCaptureDeviceTechnology(IrisCaptureDeviceTechnology printCaptureDeviceTechnology)
Function converts IrisCaptureDeviceTechnology to ISO capture technology.
Definition
IrisCaptureDeviceTechnology.h:39
IrisCaptureDeviceTechnology
IrisCaptureDeviceTechnology
It shall indicate the class of capture device technology used to acquire the captured biometric sampl...
Definition
IrisCaptureDeviceTechnology.h:22
IsoToIrisCaptureDeviceTechnology
static constexpr IrisCaptureDeviceTechnology IsoToIrisCaptureDeviceTechnology(int isoCaptureDeviceTechnology)
Function converts ISO capture technology to IrisCaptureDeviceTechnology.
Definition
IrisCaptureDeviceTechnology.h:61
IrisCaptureDeviceTechnology::UNKNOWN
@ UNKNOWN
Unknown or Unspecified.
Definition
IrisCaptureDeviceTechnology.h:24
IrisCaptureDeviceTechnology::CMOS_CCD
@ CMOS_CCD
Static photograph from an unknown source.
Definition
IrisCaptureDeviceTechnology.h:26
Iris
IrisAttributes
IrisCaptureDeviceTechnology.h
Generated by
1.17.0