ContoursUnit
The ContoursUnit class represents a unit that contains contours as intermediate results. It is derived from the IntermediateResultUnit class.
Definition
Namespace: com.dynamsoft.core.intermediate_results
public class ContoursUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getContours |
Gets the contours. |
getHierarchies |
Gets the hierarchies. |
setContours |
Sets the contours. |
getContours
Gets the contours.
Contour[] getContours() throws CoreException
Return value
Returns the contours in the unit.
See Also
Exception
getHierarchies
Gets the hierarchies.
Vector4[] getHierarchies() throws CoreException
Return value
Returns the hierarchies of the contours in the unit.
See Also
Exception
setContours
Sets the contours and hierarchies in the unit.
void setContours(Contour[] contours, Vector4[] hierarchies) throws CoreException
void setContours(Contour[] contours, Vector4[] hierarchies, double[] matrixToOriginalImage) throws CoreException
Parameters
contours The contours in the unit.
hierarchies The hierarchies in the unit.
matrixToOriginalImage The transform matrix to original image.
Exception
See Also