CContoursUnit
The CContoursUnit class represents a unit that contains contours as intermediate results. It is derived from the CIntermediateResultUnit class.
Definition
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
Inheritance: CIntermediateResultUnit -> CContoursUnit
class CContoursUnit : public CIntermediateResultUnit
Methods
| Method | Description |
|---|---|
GetContours |
Gets the contours. |
SetContours |
Sets the contours. |
| 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. |
GetContours
Gets the contours.
virtual int GetContours(int* count, const CContour** contours, const CVector4** hierarchies) const;
Parameters
[out] count The count of contours in the unit.
[out] contours The contours in the unit.
[out] hierarchies The hierarchies of the contours in the unit.
Return value
Returns 0 if successful, or an error code if the contour could not be retrieved.
See Also
SetContours
Sets the contours and hierarchies in the unit.
virtual int SetContours(int count, const CContour* contours, const CVector4* hierarchies, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
[in] count The number of contours in the unit.
[in] contours The contours in the unit.
[in] hierarchies The hierarchies in the unit.
[in] matrixToOriginalImage The matrix to original image.
Return Value
Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.