Resource Base
Table of contents

CornersUnit

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

Definition

Namespace: com.dynamsoft.ddn.intermediate_results

Assembly: DynamsoftDocumentNormalizer.aar

class CornersUnit extends IntermediateResultUnit

Methods Summary

Methods Description
getCorners Get an array of corners. It includes all corners that participate quadrilaterals assembling.
getCount Get the number of corners.
getCorner Get a corner.
removeAllCorners Remove all corners.
removeCorner Remove a corner.
addCorner Add a corner.
setCorner Set a corner.

getCorners

Get an array of corners. It includes all corners that participate quadrilaterals assembling.

Corner[] getCorners();

Return Value

Get an array of Corner.

getCount

Get the number of corners.

int getCount();

Return Value

The number of corners.

getCorner

Get the Corner object at the specified index.

Corner getCorner(int index);

Parameters

[in] index: The index of the corner.

Return Value

A Corner object as the specified corner.

removeAllCorners

Remove all corners.

void removeAllCorners();

removeCorner

Remove the corner at the specified index.

int removeCorner(int index);

Parameters

[in] index: The index of the corner.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

addCorner

Add a new Corner object to the unit.

int addCorner(Corner corner, Matrix matrixToOriginalImage);

Parameters

[in] corner: The Corner object to be added.

[in] matrixToOriginalImage: The matrix to the original image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

setCorner

Set the Corner object at the specified index.

int setCorner(int index, Corner corner, Matrix matrixToOriginalImage);

Parameters

[in] index: The index of the corner.

[in] corner: The Corner object to be set.

[in] matrixToOriginalImage: The matrix to the original image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.10
  • Version 1.x
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.5
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support