Table of contents

LogicLinesUnit

The LogicLinesUnit class represents an intermediate result unit containing logic lines. It inherits from the IntermediateResultUnit class.

Definition

Namespace: com.dynamsoft.ddn.intermediate_results

Assembly: DynamsoftDocumentNormalizer.aar

class LogicLinesUnit extends IntermediateResultUnit

Methods

Methods Description
getLogicLines Get an array of LineSegment as the logic lines.
getCount Get the number of logic lines.
getLogicLine Get a logic line.
removeAllLogicLines Remove all logic lines.
removeLogicLine Remove a logic line.
addLogicLine Add a logic line.
setLogicLine Set a logic line.

getLogicLines

Get an array of LineSegment as the logic lines.

LineSegment[] getLogicLines();

Return Value

Returns an array of LineSegment as the logic lines.

getCount

Gets the number of logic lines in the unit.

int getCount();

Return Value

Returns the number of logic lines in the unit.

getLogicLine

Gets a logic line at the specified index.

LineSegment getLogicLine(int index);

Parameters

index The index of the logic line.

Return Value

Returns a reference to the LineSegment object at the specified index.

removeAllLogicLines

Removes all logic lines.

void removeAllLogicLines();

removeLogicLine

Removes the logic line at the specified index.

int removeLogicLine(int index);

Parameters

index The index of the logic line to remove.

Return Value

Returns 0 if successful, otherwise returns a negative value.

addLogicLine

Adds a logic line.

int addLogicLine(LineSegment logicLine, Matrix matrixToOriginalImage);

Parameters

logicLine The logic line to add.

matrixToOriginalImage The matrix to the original image (3x3 matrix).

Return Value Returns 0 if successful, otherwise returns a negative value.

setLogicLine

Sets the logic line at the specified index.

int setLogicLine(int index, LineSegment logicLine, Matrix matrixToOriginalImage);

Parameters

index The index of the logic line to set.

logicLine The logic line to set.

matrixToOriginalImage The matrix to the original image (3x3 matrix).

Return Value

Returns 0 if successful, otherwise returns a negative value.

Is this page helpful?

YesYes NoNo

In this article: