CVB++ 14.0
grade_result_qr.hpp
1#pragma once
2
3#include "grade_result_2d_base.hpp"
4
5namespace Cvb
6{
7 CVB_BEGIN_INLINE_NS
8
9 namespace Barcode
10 {
11
13
16 : public GradeResult2DBase
17 {
18 public:
20
23 GradeResultQr(CExports::CVC_BC_INFO& handle)
24 : GradeResult2DBase(handle)
25 {
26 }
27
28 GradeResultQr() = default;
29
30
32
36 double GradeModulation() const
37 {
38 CheckHandlePointerAndThrow();
39 return handle_->grade_modulation;
40 }
41
43
48 {
49 CheckHandlePointerAndThrow();
50 return handle_->grade_grid_nonuniformity;
51 }
52
54
59 {
60 CheckHandlePointerAndThrow();
61 return handle_->grade_fixed_pattern_damage;
62 }
63
65
69 int SubGradeA1() const
70 {
71 CheckHandlePointerAndThrow();
72 return handle_->subgrade_a1;
73 }
74
76
80 int SubGradeA2() const
81 {
82 CheckHandlePointerAndThrow();
83 return handle_->subgrade_a2;
84 }
85
87
91 int SubGradeA3() const
92 {
93 CheckHandlePointerAndThrow();
94 return handle_->subgrade_a3;
95 }
96
98
102 int SubGradeB1() const
103 {
104 CheckHandlePointerAndThrow();
105 return handle_->subgrade_b1;
106 }
107
109
113 int SubGradeB2() const
114 {
115 CheckHandlePointerAndThrow();
116 return handle_->subgrade_b2;
117 }
118
120
124 int SubGradeC() const
125 {
126 CheckHandlePointerAndThrow();
127 return handle_->subgrade_c;
128 }
129
131
136 {
137 CheckHandlePointerAndThrow();
138 return handle_->grade_format_information;
139 }
140
142
147 {
148 CheckHandlePointerAndThrow();
149 return handle_->grade_version_information;
150 }
151
153
157 bool CodeOutsideAoi() const
158 {
159 CheckHandlePointerAndThrow();
160 return handle_->code_out_of_aoi != 0;
161 }
162
164
169 {
170 CheckHandlePointerAndThrow();
171 return handle_->code_quiet_zone_out_of_aoi != 0;
172 }
173
175
179 int GlobalThreshold() const
180 {
181 CheckHandlePointerAndThrow();
182 return handle_->global_threshold;
183 }
184
185
186 };
187
188 using GradeResultQrPtr = std::shared_ptr<GradeResultQr>;
189 }
190
191 CVB_END_INLINE_NS
192}
Object contains the barcode grading results for QR barcodes.
Definition: grade_result_qr.hpp:17
bool QuietzoneOutsideAoi() const
Returns the flag which tells, if parts of the code's quiet zone are outside the area of interest,...
Definition: grade_result_qr.hpp:168
int GlobalThreshold() const
Global threshold found during grading.
Definition: grade_result_qr.hpp:179
double GradeModulation() const
This property contains the modulation grade (ranging from 0 to 4).
Definition: grade_result_qr.hpp:36
int SubGradeB1() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:102
int GradeVersionInformation() const
This property contains the version information grade (ranging from 0 to 4).
Definition: grade_result_qr.hpp:146
bool CodeOutsideAoi() const
This flag will be set, if parts of the code are outside the area of interest, while calculating the Q...
Definition: grade_result_qr.hpp:157
int SubGradeB2() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:113
int SubGradeA1() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:69
int SubGradeA2() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:80
int SubGradeC() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:124
int GradeFormatInformation() const
This property contains the format information grade (ranging from 0 to 4).
Definition: grade_result_qr.hpp:135
int SubGradeA3() const
This is one of the sub grades on which the calculation of the GradeFixedPatternDamage() is based.
Definition: grade_result_qr.hpp:91
double GradeFixedPatternDamage() const
This property contains the fixed pattern damage grade (ranging from 0 to 4).
Definition: grade_result_qr.hpp:58
double GradeGridNonUniformity() const
This property contains the grade of the grid nonuniformity (ranging from 0 to 4).
Definition: grade_result_qr.hpp:47
GradeResultQr(CExports::CVC_BC_INFO &handle)
Constructor to initialize object from info struct.
Definition: grade_result_qr.hpp:23
Configuration to access parameters of GradeResult2DBase.
Definition: grade_result_2d_base.hpp:19
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24