layout | title | description | keywords | needAutoGenerateSidebar |
---|---|---|---|---|
default-layout |
class CIntermediateResultUnit - Dynamsoft Core Module C++ Edition API Reference |
This page shows the C++ edition of the class CIntermediateResultUnit in Dynamsoft Core Module. |
intermediate result, c++ |
true |
The CIntermediateResultUnit
class represents an intermediate result unit used in image processing. It is an abstract base class with multiple subclasses, each representing a different type of unit such as pre-detected regions, localized barcodes, decoded barcodes, localized text lines, binary image, gray image, etc.
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
class CIntermediateResultUnit
Method | Description |
---|---|
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the image 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 image 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 TransformMatrixType . |
SetTransformMatrix |
Sets the transformation matrix via TransformMatrixType . |
Gets the hash ID of the intermediate result unit.
const char* GetHashId() const
Return value
Returns the hash ID of the unit.
Gets the hash ID of the original image.
const char* GetOriginalImageHashId() const
Return value
Returns the hash ID of the original image.
Gets the image tag of the original image.
const CImageTag* GetOriginalImageTag() const
Return value
Returns the image tag of the original image.
See Also
[CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
Gets the type of the intermediate result unit.
virtual IntermediateResultUnitType GetType() const = 0
Return value
Returns the type of the intermediate result unit.
See Also
[IntermediateResultUnitType]({{ site.dcv_enumerations }}core/intermediate-result-unit-type.html?src=cpp&&lang=cpp)
Creates a copy of the intermediate result unit.
virtual CIntermediateResultUnit* Clone() const = 0
Return value
Returns a copy of the intermediate result unit.
See Also
[CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html)
Sets the hash ID of the intermediate result unit.
void SetHashId(const char* _hashId)
Parameters
[in] _hashId
The hash ID to set.
Sets the hash ID of the original image.
void SetOriginalImageHashId(const char* _originalImageHashId)
Parameters
[in] _originalImageHashId
The hash ID to set.
Sets the image tag of the original image.
void SetOriginalImageTag(const CImageTag* _tag)
Parameters
[in] _tag
The image tag to set.
See Also
[CImageTag]({{ site.dcv_cpp_api }}core/basic-structures/image-tag.html)
Increases the reference count of the intermediate result unit.
virtual void Retain() = 0
Decreases the reference count of the intermediate result unit.
virtual void Release() = 0
Gets the transformation matrix via TransformMatrixType
.
void GetTransformMatrix(TransformMatrixType matrixType, double matrix[9]) const;
Parameters
[in] matrixType
: The transform matrix type.
[out] matrix
A double array which represents the rotation transform matrix.
The corresponding transformation matrices are as follows:
- local image to original image
- original image to local image
- rotated image to original image
- original image to rotated image
See Also
Sets the transformation matrix via TransformMatrixType
.
void SetTransformMatrix(TransformMatrixType matrixType, double matrix[9]);
Parameters
[in] matrixType
: The transform matrix type.
[in] matrix
A double array which represents the rotation transform matrix.
The corresponding transformation matrices are as follows:
- local image to original image
- original image to local image
- rotated image to original image
- original image to rotated image
See Also