Table of contents

CornersUnit Class

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

Definition

Package: com.dynamsoft.ddn.intermediate_results

public class CornersUnit extends IntermediateResultUnit

Inheritance: IntermediateResultUnit -> CornersUnit

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.
getCorners Gets all Corner objects in current object.
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.

public int getCount()

Return Value

The count of Corner objects in current object.

getCorner

Gets a Corner object from current object by specifying a index.

public Corner getCorner(int index) throws DocumentNormalizerException

Parameters

index The index of the Corner object.

Return Value

Returns the Corner object got by the specific index.

Exceptions

DocumentNormalizerException

See Also

Corner

getCorners

Gets all Corner objects in current object.

public Corner[] getCorners()

Return Value

Returns an array of Corner objects.

See Also

Corner

removeAllCorners

Removes all the corners in current object.

public void removeAllCorners() throws DocumentNormalizerException

Exceptions

DocumentNormalizerException

removeCorner

Removes a corner from current object by specifying an index.

public void removeCorner(int index) throws DocumentNormalizerException

Parameters

index The index of the corner to be removed.

Exceptions

DocumentNormalizerException

addCorner

Adds a corner to current object.

public void addCorner(Corner corner) throws DocumentNormalizerException
public void addCorner(Corner corner, double[] matrixToOriginalImage) throws DocumentNormalizerException

Parameters

corner The corner to be added.

matrixToOriginalImage The matrix to the original image.

Exceptions

DocumentNormalizerException

See Also

Corner

setCorner

Sets the corner at the specified index.

public void setCorner(int index, Corner corner) throws DocumentNormalizerException
public void setCorner(int index, Corner corner, double[] matrixToOriginalImage) throws DocumentNormalizerException

Parameters

index The index of the corner to be set.

corner The corner to be added.

matrixToOriginalImage The matrix to the original image.

Exceptions

DocumentNormalizerException

See Also

Corner

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: