CornersUnit Class
The CornersUnit class represents an intermediate result unit whose type is corners.
Definition
Namespace: Dynamsoft.DDN.intermediate_results
class CornersUnit : IntermediateResultUnit
Inheritance: IntermediateResultUnit -> CornersUnit
Methods
| Method | Description |
|---|---|
GetCount |
Gets the count of Corner objects in current object. |
GetCorner |
Gets a Corner object from current object by specifying a index. |
GetCorners |
Gets all Corner objects from current object. |
RemoveAllCorners |
Removes all the Corner objects in current object. |
RemoveCorner |
Removes a Corner from current object by specifying an index. |
AddCorner |
Adds a Corner to current object. |
SetCorner |
Sets the Corner at the specified index. |
GetCount
Gets the count of Corner objects in current object.
int GetCount()
Return Value
The count of Corner objects in current object.
GetCorner
Gets a Corner object from current object by specifying a index.
int GetCorner(int index, out Corner corner)
Parameters
[in] index The index of the Corner object.
[in, out] corner the Corner object got by the specific index.
Return Value
Returns the error code.
See Also
GetCorners
Gets all Corner objects from current object.
int GetCorners(out Corner[] corners)
Parameters
[in, out] corners All the Corner objects got by the specific index.
Return Value
Returns the error code.
See Also
RemoveAllCorners
Removes all the Corners in current object.
void RemoveAllCorners()
RemoveCorner
Removes a Corner from current object by specifying an index.
int RemoveCorner(int index)
Parameters
[in] index The index of the Corner to be removed.
Return Value
Returns 0 if successful, otherwise returns a negative value.
AddCorner
Adds a Corner to current object.
int AddCorner(Corner corner, double[] matrixToOriginalImage = null)
Parameters
[in] corner the Corner to be added.
[in] matrixToOriginalImage The matrix to the original image.
Return Value
Returns 0 if successful, otherwise returns a negative value.
See Also
SetCorner
Sets the Corner at the specified index.
int SetCorner(int index, Corner corner, double[] matrixToOriginalImage = null)
Parameters
[in] index The index of the Corner to be set.
[in] corner the Corner to be added.
[in] matrixToOriginalImage The matrix to the original image.
Return Value
Returns 0 if successful, otherwise returns a negative value.
See Also