Configuration to access parameters of FourStateUsps. More...
#include <cvb/barcode/_detail/four_state_usps.hpp>
Inherits ReaderFourStateConfigBase.
Public Member Functions | |
void | SetLsbPosition (FourStateLsb lsb) |
Sets the position of the "low significant bit" of the code in the image. More... | |
FourStateLsb | LsbPosition () const |
Returns the position of the "low significant bit" of the code in the image. More... | |
Public Member Functions inherited from ReaderFourStateConfigBase | |
void | SetMirrored (bool mirrored) |
Sets whether the code is mirrored/not mirrored. More... | |
bool | Mirrored () const |
Returns whether the code is mirrored/not mirrored. More... | |
void | SetQuietzoneWidth (int quietzoneWidth) |
Sets the quiet zone in module width. More... | |
int | QuietzoneWidth () const |
Returns the quiet zone in module width. More... | |
void | SetThreshold (int threshold) |
Sets the digitalisation threshold in percent, ranging from 0 to 100. More... | |
int | Threshold () const |
Returns the digitalisation threshold in percent, ranging from 0 to 100. More... | |
Public Member Functions inherited from ReaderConfigBase | |
void | SetInverse (bool inverse) |
Code is inverted (white on black)/not inverted. More... | |
bool | Inverse () const |
Returns whether the code is inverted (white on black) or not. More... | |
Static Public Member Functions | |
static std::unique_ptr< FourStateUsps > | FromHandle (const HandleGuard< ReaderConfig > &guard, bool &isActiveOut) |
Create object from handle. More... | |
Configuration to access parameters of FourStateUsps.
|
inlinestatic |
Create object from handle.
[in] | guard | Handle guard to read the configuration from. |
[out] | isActiveOut | Returns the active state of the configuration in the handle. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the position of the "low significant bit" of the code in the image.
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the position of the "low significant bit" of the code in the image.
[in] | lsb | The lsb "low significant bit" can be FourStateLsb::Left , FourStateLsb::Bottom, FourStateLsb::Right or FourStateLsb::Top. If the lsb is not correct (for example FourStateLsb::Left and FourStateLsb::Right are interchanged) the code interpretation is another. Default lsb = FourStateLsb::Left. |
Any | exception derived from std::exception including CvbException. |