CVB++ 14.0
grade_result_1d.hpp
1#pragma once
2
3#include "grade_result_base.hpp"
4
5namespace Cvb
6{
7 CVB_BEGIN_INLINE_NS
8
9 namespace Barcode
10 {
11
13
16 : public GradeResultBase
17 {
18 public:
19
21
24 GradeResult1D(CExports::CVC_BC_INFO& handle)
25 : GradeResultBase(handle)
26 {
27 }
28
29 GradeResult1D() = default;
30
31
33
38 {
39 CheckHandlePointerAndThrow();
40 return static_cast<GradeResult1DInfo>(handle_->quality_info.result);
41 }
42
44
48 double GradeModulation() const
49 {
50 CheckHandlePointerAndThrow();
51 return handle_->quality_info.grade_modulation;
52 }
53
55
59 virtual double GradeSymbolContrast() const override
60 {
61 CheckHandlePointerAndThrow();
62 return handle_->quality_info.grade_symbol_contrast;
63 }
64
66
70 virtual double SymbolContrast() const override
71 {
72 CheckHandlePointerAndThrow();
73 return handle_->quality_info.value_symbol_contrast;
74 }
75
77
81 virtual double ReflectanceMin() const override
82 {
83 CheckHandlePointerAndThrow();
84 return handle_->quality_info.value_reflectance_min;
85 }
86
88
92 virtual double ReflectanceMax() const override
93 {
94 CheckHandlePointerAndThrow();
95 return handle_->quality_info.value_reflectance_max;
96 }
97
99
103 double GradeDecodability() const
104 {
105 CheckHandlePointerAndThrow();
106 return handle_->quality_info.grade_decodability;
107 }
108
110
114 virtual double GradeDecode() const override
115 {
116 CheckHandlePointerAndThrow();
117 return handle_->quality_info.grade_decode;
118 }
119
121
125 double GradeDefects() const
126 {
127 CheckHandlePointerAndThrow();
128 return handle_->quality_info.grade_defects;
129 }
130
132
136 double GradeEdgeContrastMin() const
137 {
138 CheckHandlePointerAndThrow();
139 return handle_->quality_info.grade_edge_contrast_min;
140 }
141
143
147 virtual double GradeOverall() const override
148 {
149 CheckHandlePointerAndThrow();
150 return handle_->quality_info.grade_overall;
151 }
152
154
158 double GradeReflectanceMin() const
159 {
160 CheckHandlePointerAndThrow();
161 return handle_->quality_info.grade_reflectance_min;
162 }
163
165
169 double ScanLinesUsed() const
170 {
171 CheckHandlePointerAndThrow();
172 return handle_->quality_info.scan_lines_used;
173 }
174
176
180 double Decodability() const
181 {
182 CheckHandlePointerAndThrow();
183 return handle_->quality_info.value_decodability;
184 }
185
187
191 double DecodedScanLines() const
192 {
193 CheckHandlePointerAndThrow();
194 return handle_->quality_info.value_decode;
195 }
196
198
202 double Defects() const
203 {
204 CheckHandlePointerAndThrow();
205 return handle_->quality_info.value_defects;
206 }
207
209
213 double EdgeContrastMin() const
214 {
215 CheckHandlePointerAndThrow();
216 return handle_->quality_info.value_edge_contrast_min;
217 }
218
220
224 double GlobalThreshold() const
225 {
226 CheckHandlePointerAndThrow();
227 return handle_->quality_info.value_gt;
228 }
229
231
235 double Modulation() const
236 {
237 CheckHandlePointerAndThrow();
238 return handle_->quality_info.value_modulation;
239 }
240
242
246 double PrintContrastSignal() const
247 {
248 CheckHandlePointerAndThrow();
249 return handle_->quality_info.value_pcs;
250 }
251
252
253
254 };
255
256
257 using GradeResult1DPtr = std::shared_ptr<GradeResult1D>;
258
259 }
260
261 CVB_END_INLINE_NS
262}
Object contains the barcode grading results for one dimensional barcodes.
Definition: grade_result_1d.hpp:17
double Defects() const
The element Defects is the defects value calculated under consideration of all scan reflectance profi...
Definition: grade_result_1d.hpp:202
virtual double GradeOverall() const override
The element GradeOverall is the overall symbol grade calculated under consideration of the worst grad...
Definition: grade_result_1d.hpp:147
double GradeModulation() const
The element GradeModulation is the modulation grade calculated under consideration of all scan reflec...
Definition: grade_result_1d.hpp:48
double PrintContrastSignal() const
The element PrintContrastSignal is the print contrast signal calculated under consideration of all sc...
Definition: grade_result_1d.hpp:246
virtual double SymbolContrast() const override
The element SymbolContrast is the symbol contrast in percent calculated under consideration of all sc...
Definition: grade_result_1d.hpp:70
virtual double ReflectanceMax() const override
The element ReflectanceMax is the maximum reflectance value in percent calculated under consideration...
Definition: grade_result_1d.hpp:92
double GradeDecodability() const
The element GradeDecodability is the decodability grade calculated under consideration of all scan re...
Definition: grade_result_1d.hpp:103
double GlobalThreshold() const
The element GlobalThreshold is the global threshold in percent calculated under consideration of all ...
Definition: grade_result_1d.hpp:224
virtual double GradeSymbolContrast() const override
The element GradeSymbolContrast is the symbol contrast grade calculated under consideration of all sc...
Definition: grade_result_1d.hpp:59
virtual double GradeDecode() const override
The element GradeDecode is the decode grade calculated under consideration of all scan reflectance pr...
Definition: grade_result_1d.hpp:114
GradeResult1DInfo ResultInfo() const
1D Code Grading Results.
Definition: grade_result_1d.hpp:37
double EdgeContrastMin() const
The element EdgeContrastMin is the minimum edge contrast value in percent calculated under considerat...
Definition: grade_result_1d.hpp:213
double GradeEdgeContrastMin() const
The element GradeEdgeContrastMin is the minimum edge contrast grade calculated under consideration of...
Definition: grade_result_1d.hpp:136
double GradeDefects() const
The element GradeDefects is the defects grade calculated under consideration of all scan reflectance ...
Definition: grade_result_1d.hpp:125
double ScanLinesUsed() const
The element ScanLinesUsed is the number of used scan reflectance profiles.
Definition: grade_result_1d.hpp:169
double Decodability() const
The element Decodability is the decodability grade calculated under consideration of all scan reflect...
Definition: grade_result_1d.hpp:180
double DecodedScanLines() const
The element DecodedScanLines is the number of decoded scan reflectance profiles in percent.
Definition: grade_result_1d.hpp:191
virtual double ReflectanceMin() const override
The element ReflectanceMin is the minimum reflectance value in percent calculated under consideration...
Definition: grade_result_1d.hpp:81
double Modulation() const
The element Modulation is the modulation (ec_min/SC) value calculated under consideration of all scan...
Definition: grade_result_1d.hpp:235
double GradeReflectanceMin() const
The element GradeReflectanceMin is the minimum reflectance grade calculated under consideration of al...
Definition: grade_result_1d.hpp:158
GradeResult1D(CExports::CVC_BC_INFO &handle)
Constructor to initialize object from info struct.
Definition: grade_result_1d.hpp:24
Configuration to access parameters of GradeResultBase.
Definition: grade_result_base.hpp:20
GradeResult1DInfo
Additional information about 1D grading results.
Definition: barcode.hpp:521
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24