Skip to content

Latest commit

 

History

History
131 lines (80 loc) · 3.02 KB

File metadata and controls

131 lines (80 loc) · 3.02 KB
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

CCornersUnit Class

The CCornersUnit class represents an intermediate result unit whose type is corners.

Definition

Namespace: dynamsoft::ddn::intermediate_results

Assembly: DynamsoftDocumentNormalizer

class CCornersUnit: CIntermediateResultUnit

Inheritance: [CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html) -> CCornersUnit

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.
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.

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, 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)

RemoveAllCorners

Removes all the corners in current object.

virtual void RemoveAllCorners() = 0

RemoveCorner

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.

AddCorner

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.

SetCorner

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.