Configuration to access parameters of PharmaCode. More...
#include <cvb/barcode/_detail/pharma_code.hpp>
Inherits ReaderConfigBase.
Public Member Functions | |
void | SetDirection (PharmaCodeRunDirection direction) |
Sets the run-direction in which the Pharmacode moves in the camera picture. More... | |
PharmaCodeRunDirection | Direction () const |
Returns the run-direction in which the Pharmacode moves in the camera picture. More... | |
void | SetMaxDigits (int maxDigits) |
Sets the maximum number of Pharmacode code words. More... | |
int | MaxDigits () const |
Returns the maximum number of Pharmacode code words. More... | |
void | SetMinDigits (int minDigits) |
Sets the minimum number of Pharmacode code words. More... | |
int | MinDigits () const |
Returns the minimum number of Pharmacode code words. More... | |
void | SetPixelReference (int pixelRef) |
Sets the illustration measure of the camera in a 10th of a pixel per millimetre. More... | |
int | PixelReference () const |
Returns the illustration measure of the camera in a 10th of a pixel per millimetre. More... | |
void | SetQuietzoneWidth (int quietzoneWidth) |
Sets the minimal quiet zone in a 10th of a millimetre. More... | |
int | QuietzoneWidth () const |
Returns the minimal quiet zone in a 10th of a millimetre. More... | |
void | SetScaleFactor (int scaleFactor) |
Sets the scale factor of the Pharmacode in percent. More... | |
int | ScaleFactor () const |
Returns the scale factor of the Pharmacode in %. More... | |
void | SetThreshold (int threshold) |
Sets the digitalisation threshold in percent ranging from 0 to 100 (default 10). More... | |
int | Threshold () const |
Returns the digitalisation threshold in percent ranging from 0 to 100 (default 10). 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< PharmaCode > | FromHandle (const HandleGuard< ReaderConfig > &guard, bool &isActiveOut) |
Create object from handle. More... | |
Configuration to access parameters of PharmaCode.
|
inline |
Returns the run-direction in which the Pharmacode moves in the camera picture.
Any | exception derived from std::exception including CvbException. |
|
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 maximum number of Pharmacode code words.
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the minimum number of Pharmacode code words.
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the illustration measure of the camera in a 10th of a pixel per millimetre.
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the minimal quiet zone in a 10th of a millimetre.
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the scale factor of the Pharmacode in %.
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the run-direction in which the Pharmacode moves in the camera picture.
[in] | direction | Run-direction in which the Pharmacode moves in the camera picture. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the maximum number of Pharmacode code words.
[in] | maxDigits | The parameters MinDigits() and maxDigits limit the number of code words for the Pharmacode. The parameter MinDigits() is in the range 2 to 16 (default 4). The parameter maxDigits is in the range 2 to 16 (default 16). |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the minimum number of Pharmacode code words.
[in] | minDigits | The parameters minDigits and MaxDigits() limit the number of code words for the Pharmacode. The parameter minDigits is in the range 2 to 16 (default 4). The parameter MaxDigits() is in the range 2 to 16 (default 16). |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the illustration measure of the camera in a 10th of a pixel per millimetre.
[in] | pixelRef | It sets the illustration measure of the camera in 1/10 pixel per millimetre ranging from 0 to 1000 (default 30). |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the minimal quiet zone in a 10th of a millimetre.
[in] | quietzoneWidth | It sets the minimal quiet zone in 1/10 mm. The range is 10 to 200 (default 50). |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the scale factor of the Pharmacode in percent.
[in] | scaleFactor | Possible values are 50 to 200 (default 100). 100% = standard Pharmacode. 66% = miniature Pharmacode. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the digitalisation threshold in percent ranging from 0 to 100 (default 10).
[in] | threshold | Digitalisation threshold in percent ranging from 0 to 100 (default 10). |
Any | exception derived from std::exception including CvbException. |
|
inline |
Returns the digitalisation threshold in percent ranging from 0 to 100 (default 10).
Any | exception derived from std::exception including CvbException. |