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.
Methods Inherited from CIntermediateResultUnit:  
GetHashId Gets the hash ID of the unit.
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the image tag of the original image.
GetType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
SetHashId Sets the hash ID of the unit.
SetOriginalImageHashId Sets the hash ID of the original image.
SetOriginalImageTag Sets the image tag of the original image.
Retain Increases the reference count of the unit.
Release Decreases the reference count of the unit.
GetTransformMatrix Gets the transformation matrix via TransformMatrixType.
SetTransformMatrix Sets the transformation matrix via TransformMatrixType.

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:

Is this page helpful?

YesYes NoNo

In this article: