3#include "../../_cexports/c_barcode.h"
4#include "grader_2d_config_base.hpp"
29 expectReducedQuietzone_ = expectReducedQuietzone;
40 return expectReducedQuietzone_;
53 formatInformation_ = formatInformation;
64 return formatInformation_;
77 versionInformation_ = versionInformation;
88 return versionInformation_;
93 SmartBool expectReducedQuietzone_;
94 SmartBool formatInformation_;
95 SmartBool versionInformation_;
110 isActiveOut = pConfig->ReadFromHandle(guard);
115 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
118 CExports::cvbbool_t active;
119 CVB_CALL_CAPI(CvcBcGetQRCodeGradingEx(
121 symbolContrast_.Ptr(),
122 axialNonUniformity_.Ptr(),
123 gridNonUniformity_.Ptr(),
124 unusedErrorCorrection_.Ptr(),
125 angleOfDistortion_.Ptr(),
127 reflectanceMargin_.Ptr(),
128 fixedPatternDamage_.Ptr(),
129 formatInformation_.Ptr(),
130 versionInformation_.Ptr(),
131 expectReducedQuietzone_.Ptr(),
137 return SmartBool(active);
140 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
142 Internal::DoResCall([&]()
144 return CVB_CALL_CAPI(CvcBcSetQRCodeGradingEx(
reinterpret_cast<intptr_t
>(guard.Handle()),
149 unusedErrorCorrection_,
156 expectReducedQuietzone_,
157 static_cast<short>(reflectanceReference_.
Min()),
158 static_cast<short>(reflectanceReference_.
Max())));
163 : Grader2DConfigBase()
Configuration to access parameters of Grader2DConfigBase.
Definition: grader_2d_config_base.hpp:19
Configuration to access parameters of QrGrading.
Definition: qr_grading.hpp:17
void SetGradeFormatInformation(bool formatInformation)
Activates (true) or deactivates (false) the calculation of the format information grade.
Definition: qr_grading.hpp:50
static std::unique_ptr< QrGrading > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: qr_grading.hpp:107
void SetExpectReducedQuietzone(bool expectReducedQuietzone)
With this flag the quiet zone expected may be reduced to one module size (standard are 4 module sizes...
Definition: qr_grading.hpp:26
void SetGradeVersionInformation(bool versionInformation)
Activates (true) or deactivates (false) the calculation of the version information grade.
Definition: qr_grading.hpp:74
bool GradeFormatInformation() const
Returns the calculation of the format information grade.
Definition: qr_grading.hpp:62
bool GradeVersionInformation() const
Returns the calculation of the version information grade.
Definition: qr_grading.hpp:86
bool ExpectReducedQuietzone() const
Returns whether the quiet zone expected may be reduced to one module size (standard are 4 module size...
Definition: qr_grading.hpp:38
T Min() const noexcept
Gets the minimum value.
Definition: value_range.hpp:50
T Max() const noexcept
Gets the maximum value.
Definition: value_range.hpp:72
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ QrGrading
QR code grading.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24