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()
Configuration to access parameters of Grader2DConfigBase.
Definition: grader_2d_config_base.hpp:19
Configuration to access parameters of DataMatrixGrading.
Definition: data_matrix_grading.hpp:17
bool GradePrintGrowth() const
Activates (true) or deactivates (false) the print growth when grading.
Definition: data_matrix_grading.hpp:40
void SetGradePrintGrowth(bool printGrowth)
Activates (true) or deactivates (false) the print growth when grading.
Definition: data_matrix_grading.hpp:27
static std::unique_ptr< DataMatrixGrading > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: data_matrix_grading.hpp:58
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
@ DataMatrixGrading
DataMatrix grading.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24