CDecodedBarcodesUnit Class
The CDecodedBarcodesUnit class represents a unit that contains decoded barcode elements. It inherits from the CIntermediateResultUnit class.
Definition
Namespace: dynamsoft::dbr::intermediate_results
Assembly: DynamsoftBarcodeReader
Inheritance: CIntermediateResultUnit -> CDecodedBarcodesUnit
class CDecodedBarcodesUnit: public CIntermediateResultUnit
Methods
| Method | Description |
|---|---|
GetCount |
Gets the number of decoded barcodes in the unit. |
GetDecodedBarcode |
Gets a pointer to the CDecodedBarcodeElement object at the specified index. |
RemoveAllDecodedBarcodes |
Removes all the decoded barcodes in the unit. |
SetDecodedBarcode |
Sets the decoded barcode. |
operator[] |
Gets a pointer to the CDecodedBarcodeElement object at the specified index. |
| Methods Inherited from CIntermediateResultUnit: | |
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the tag of the original image. |
GetType |
Gets the type of the intermediate result unit. |
Clone |
Creates a copy of the intermediate result unit. |
SetHashId |
Sets the hash ID of the unit. |
SetOriginalImageHashId |
Sets the hash ID of the original image. |
SetOriginalImageTag |
Sets the tag of the original image. |
Retain |
Increases the reference count of the unit. |
Release |
Decreases the reference count of the unit. |
GetTransformMatrix |
Gets the transformation matrix via CTransformMatrixType. |
SetTransformMatrix |
Sets the transformation matrix via CTransformMatrixType. |
GetCount
Gets the number of decoded barcodes in the unit.
virtual int GetCount() const = 0;
Return value
Returns the number of decoded barcodes in the unit.
GetDecodedBarcode
Gets a pointer to the CDecodedBarcodeElement object at the specified index.
virtual const CDecodedBarcodeElement* GetDecodedBarcode(int index) const = 0;
Parameter
[in] index The index of the desired CDecodedBarcodeElement object.
Return value
Returns a pointer to the CDecodedBarcodeElement object at the specified index.
See Also
RemoveAllDecodedBarcodes
Removes all the decoded barcodes in the unit.
virtual void RemoveAllDecodedBarcodes() = 0;
SetDecodedBarcode
Sets the decoded barcode.
virtual int SetDecodedBarcode(const CDecodedBarcodeElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
element The decoded barcode element.
matrixToOriginalImage The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.
See Also
operator[]
Gets a pointer to the CDecodedBarcodeElement object at the specified index.
virtual const CDecodedBarcodeElement* operator[](int index) const = 0;
Parameter
[in] index The index of the desired CDecodedBarcodeElement object.
Return value
Returns a pointer to the CDecodedBarcodeElement object at the specified index.
See Also