Resource Base
Table of contents

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

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.10)
  • Version 2.x
    • Version 2.2.0
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.20
    • Version 1.0.10
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support