CVB++ 14.0
BarcodeGrading Class Reference

Configuration to access parameters of barcode grading. More...

#include <cvb/barcode/_detail/barcode_grading.hpp>

Inherits GraderConfigBase.

Public Member Functions

void SetGradeDecode (bool decode)
 Specifies whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall. More...
 
bool GradeDecode () const
 Returns whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall. More...
 
void SetGradeReflectanceMin (bool reflectanceMin)
 Specifies whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall. More...
 
bool GradeReflectanceMin () const
 Returns whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall. More...
 
void SetGradeEdgeContrastMin (bool edgeContrastMin)
 Specifies whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall. More...
 
bool GradeEdgeContrastMin () const
 Returns whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall. More...
 
void SetGradeDefects (bool defects)
 Specifies whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall. More...
 
bool GradeDefects () const
 Returns whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall. More...
 
void SetGradeDecodability (bool decodability)
 Specifies whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall. More...
 
bool GradeDecodability () const
 Returns whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall. More...
 
- Public Member Functions inherited from GraderConfigBase
void SetGradeModulation (bool modulation)
 Activates (true) or deactivates (false) the calculation of the modulation grade. More...
 
bool GradeModulation () const
 Activates (true) or deactivates (false) the calculation of the modulation grade. More...
 
void SetGradeSymbolContrast (bool symbolContrast)
 Activates (true) or deactivates (false) the calculation of the symbol contrast grade. More...
 
bool GradeSymbolContrast () const
 Activates (true) or deactivates (false) the calculation of the symbol contrast grade. More...
 
void SetReflectanceReference (Cvb::ValueRange< int > reflectanceReference)
 Reflectance Reference Range for contrast calculation. More...
 
Cvb::ValueRange< int > ReflectanceReference () const
 Reflectance Reference Range for contrast calculation. More...
 

Static Public Member Functions

static std::unique_ptr< BarcodeGradingFromHandle (const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
 Create object from handle. More...
 

Detailed Description

Configuration to access parameters of barcode grading.

Member Function Documentation

◆ FromHandle()

static std::unique_ptr< BarcodeGrading > FromHandle ( const HandleGuard< ReaderConfig > &  guard,
bool &  isActiveOut 
)
inlinestatic

Create object from handle.

Parameters
[in]guardHandle guard to read the configuration from.
[out]isActiveOutReturns the active state of the configuration in the handle.
Returns
unique pointer to object.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ GradeDecodability()

bool GradeDecodability ( ) const
inline

Returns whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall.

Returns
Flag specifying whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetGradeDecodability

◆ GradeDecode()

bool GradeDecode ( ) const
inline

Returns whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall.

Returns
Flag specifying whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetGradeDecode

◆ GradeDefects()

bool GradeDefects ( ) const
inline

Returns whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall.

Returns
Flag specifying whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetGradeDefects

◆ GradeEdgeContrastMin()

bool GradeEdgeContrastMin ( ) const
inline

Returns whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall.

Returns
Flag specifying whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetGradeEdgeContrastMin

◆ GradeReflectanceMin()

bool GradeReflectanceMin ( ) const
inline

Returns whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall.

Returns
Flag specifying whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
SetGradeReflectanceMin

◆ SetGradeDecodability()

void SetGradeDecodability ( bool  decodability)
inline

Specifies whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall.

Parameters
[in]decodabilityFlag specifying whether or not the grade GradeResult1D::Decodability will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
GradeDecodability

◆ SetGradeDecode()

void SetGradeDecode ( bool  decode)
inline

Specifies whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall.

Parameters
[in]decodeFlag specifying whether or not the grade decodes will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
GradeDecode

◆ SetGradeDefects()

void SetGradeDefects ( bool  defects)
inline

Specifies whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall.

Parameters
[in]defectsFlag specifying whether or not the grade GradeResult1D::Defects will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
GradeDefects

◆ SetGradeEdgeContrastMin()

void SetGradeEdgeContrastMin ( bool  edgeContrastMin)
inline

Specifies whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall.

Parameters
[in]edgeContrastMinFlag specifying whether or not the grade GradeResult1D::EdgeContrastMin will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
GradeEdgeContrastMin

◆ SetGradeReflectanceMin()

void SetGradeReflectanceMin ( bool  reflectanceMin)
inline

Specifies whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall.

Parameters
[in]reflectanceMinFlag specifying whether or not the grade GradeResult1D::ReflectanceMin will enter the calculation of GradeResult1D::GradeOverall.
Exceptions
Anyexception derived from std::exception including CvbException.
See also
GradeReflectanceMin