CVB++ 14.0
grader_2d_config_base.hpp
1#pragma once
2
3#include "grader_config_base.hpp"
4
5namespace Cvb
6{
7 CVB_BEGIN_INLINE_NS
8
9 namespace Barcode
10 {
11 using namespace Internal;
12
13 namespace Config
14 {
16
19 {
20 public:
21
23
28 void SetGradeAngleOfDistortion(bool angleOfDistortion)
29 {
30 SetDirty();
31 angleOfDistortion_ = angleOfDistortion;
32 };
33
35
41 {
42 return angleOfDistortion_;
43 };
44
45
47
52 void SetGradeAxialNonUniformity(bool axialNonUniformity)
53 {
54 SetDirty();
55 axialNonUniformity_ = axialNonUniformity;
56 };
57
59
65 {
66 return axialNonUniformity_;
67 };
68
69
71
76 void SetGradeFixedPatternDamage(bool fixedPatternDamage)
77 {
78 SetDirty();
79 fixedPatternDamage_ = fixedPatternDamage;
80 };
81
83
89 {
90 return fixedPatternDamage_;
91 };
92
93
95
100 void SetGradeGridNonUniformity(bool gridNonUniformity)
101 {
102 SetDirty();
103 gridNonUniformity_ = gridNonUniformity;
104 };
105
107
113 {
114 return gridNonUniformity_;
115 };
116
117
119
124 void SetGradeReflectanceMargin(bool reflectanceMargin)
125 {
126 SetDirty();
127 reflectanceMargin_ = reflectanceMargin;
128 };
129
131
137 {
138 return reflectanceMargin_;
139 };
140
141
143
148 void SetGradeUnusedErrorCorrection(bool unusedErrorCorrection)
149 {
150 SetDirty();
151 unusedErrorCorrection_ = unusedErrorCorrection;
152 };
153
155
161 {
162 return unusedErrorCorrection_;
163 };
164
165 protected:
166 SmartBool angleOfDistortion_;
167 SmartBool axialNonUniformity_;
168 SmartBool fixedPatternDamage_;
169 SmartBool gridNonUniformity_;
170 SmartBool reflectanceMargin_;
171 SmartBool unusedErrorCorrection_;
172
173 protected:
176 {
177 }
178
179 };
180 }
181
182 using Grader2DConfigBase = Config::Grader2DConfigBase;
183 using Grader2DConfigBasePtr = std::shared_ptr<Grader2DConfigBase>;
184 }
185
186 CVB_END_INLINE_NS
187}
Configuration to access parameters of Grader2DConfigBase.
Definition: grader_2d_config_base.hpp:19
void SetGradeAngleOfDistortion(bool angleOfDistortion)
Activates (true) or deactivates (false) the calculation of the angle of distortion....
Definition: grader_2d_config_base.hpp:28
bool GradeAxialNonUniformity() const
Returns whether it activates (true) or deactivates (false) the calculation of the axial nonuniformity...
Definition: grader_2d_config_base.hpp:64
void SetGradeAxialNonUniformity(bool axialNonUniformity)
Activates (true) or deactivates (false) the calculation of the axial_nonuniformity grade.
Definition: grader_2d_config_base.hpp:52
void SetGradeUnusedErrorCorrection(bool unusedErrorCorrection)
Activates (true) or deactivates (false) the calculation of the unused error correction grade.
Definition: grader_2d_config_base.hpp:148
bool GradeReflectanceMargin() const
Returns whether it activates (true) or deactivates (false) the calculation of the reflectance margin.
Definition: grader_2d_config_base.hpp:136
void SetGradeGridNonUniformity(bool gridNonUniformity)
Activates (true) or deactivates (false) the calculation of the grid nonuniformity grade.
Definition: grader_2d_config_base.hpp:100
bool GradeGridNonUniformity() const
Returns whether it activates (true) or deactivates (false) the calculation of the grid nonuniformity ...
Definition: grader_2d_config_base.hpp:112
bool GradeUnusedErrorCorrection() const
Returns whether it activates (true) or deactivates (false) the calculation of the unused error correc...
Definition: grader_2d_config_base.hpp:160
bool GradeAngleOfDistortion() const
Returns whether it activates/deactives the calculation of the angle of distortion....
Definition: grader_2d_config_base.hpp:40
bool GradeFixedPatternDamage() const
Returns whether it activates (true) or deactivates (false) the calculation of the fixed pattern damag...
Definition: grader_2d_config_base.hpp:88
void SetGradeFixedPatternDamage(bool fixedPatternDamage)
Activates (true) or deactivates (false) the calculation of the fixed pattern damage grade.
Definition: grader_2d_config_base.hpp:76
void SetGradeReflectanceMargin(bool reflectanceMargin)
Activates (true) or deactivates (false) the calculation of the reflectance margin.
Definition: grader_2d_config_base.hpp:124
Configuration to access parameters of GraderConfigBase.
Definition: grader_config_base.hpp:20
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24