ContoursUnit
The ContoursUnit class represents a unit that contains contours as intermediate results. It is derived from the IntermediateResultUnit class.
Definition
Namespace: Dynamsoft.Core.intermediate_results
class ContoursUnit : IntermediateResultUnit
Methods
| Method | Description |
|---|---|
GetContours |
Gets the contours. |
SetContours |
Sets the contours. |
Inherited Methods
Checkout inherited methods from IntermediateResultUnit for more details.
GetContours
Gets the contours.
int GetContours(out Contour[] contours, out Vector4[] hierarchies)
Parameters
[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.
int SetContours(Contour[] contours, Vector4[] hierarchies, double[] matrixToOriginalImage = null)
Parameters
[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.