layout | title | description | keywords | permalink |
---|---|---|---|---|
default-layout |
CCornersUnit Class |
This page shows CCornersUnit class definition of Dynamsoft Document Normalizer SDK C++ Edition. |
GetCount, GetCorner, CCornersUnit, api reference |
/programming/cplusplus/api-reference/corners-unit.html |
The CCornersUnit class represents an intermediate result unit whose type is corners.
Namespace: dynamsoft::ddn::intermediate_results
Assembly: DynamsoftDocumentNormalizer
class CCornersUnit: CIntermediateResultUnit
Inheritance: [CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html) -> CCornersUnit
Method | Description |
---|---|
GetCount |
Gets the count of Corner objects in current object. |
GetCorner |
Gets a Corner object from current object by specifying a index. |
RemoveAllCorners |
Removes all the corners 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. |
Gets the count of Corner objects in current object.
int GetCount()
Return Value
The count of Corner objects in current object.
Gets a Corner object from current object by specifying a index.
int GetCorner(int index, CCorner* 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
- [CCorner]({{ site.dcv_cpp_api }}core/basic-structures/corner.html)
- [ErrorCode]({{ site.dcv_enumerations }}core/error-code.html?src=cpp&&lang=cpp)
Removes all the corners in current object.
virtual void RemoveAllCorners() = 0
Removes a corner from current object by specifying an index.
virtual int RemoveCorner(int index) = 0
Parameters
[in] index
The index of the corner to be removed.
Return Value
Returns 0 if successful, otherwise returns a negative value.
Adds a corner to current object.
virtual int AddCorner(const CCorner& corner, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0
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.
Sets the corner at the specified index.
virtual int SetCorner(int index, const CCorner& corner, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
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.