3 #include "../../_cexports/c_barcode.h" 4 #include "grader_2d_config_base.hpp" 30 printGrowth_ = printGrowth;
46 SmartBool printGrowth_;
61 isActiveOut = pConfig->ReadFromHandle(guard);
66 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override 69 CExports::cvbbool_t active;
70 CVB_CALL_CAPI(CvcBcGetCodeGradingEx(reinterpret_cast<std::intptr_t>(guard.Handle()),
72 symbolContrast_.Ptr(),
73 axialNonUniformity_.Ptr(),
74 gridNonUniformity_.Ptr(),
75 unusedErrorCorrection_.Ptr(),
77 angleOfDistortion_.Ptr(),
79 reflectanceMargin_.Ptr(),
80 fixedPatternDamage_.Ptr(),
85 return SmartBool(active);
88 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override 90 Internal::DoResCall([&]()
92 return CVB_CALL_CAPI(CvcBcSetCodeGradingEx(reinterpret_cast<std::intptr_t>(guard.Handle()), SmartBool(active),
96 unusedErrorCorrection_,
102 static_cast<short>(reflectanceReference_.
Min()),
103 static_cast<short>(reflectanceReference_.
Max())));
108 : Grader2DConfigBase()
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:96
virtual Symbology Type() const override
Symbology of configuration object.
Definition: data_matrix_grading.hpp:49
Root namespace for the Image Manager interface.
Definition: version.hpp:11
static std::unique_ptr< DataMatrixGrading > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: data_matrix_grading.hpp:58
void SetGradePrintGrowth(bool printGrowth)
Activates (true) or deactivates (false) the print growth when grading.
Definition: data_matrix_grading.hpp:27
Configuration to access parameters of Grader2DConfigBase.
Definition: grader_2d_config_base.hpp:18
bool GradePrintGrowth() const
Activates (true) or deactivates (false) the print growth when grading.
Definition: data_matrix_grading.hpp:40
Configuration to access parameters of DataMatrixGrading.
Definition: data_matrix_grading.hpp:16