LogicLinesUnit
The LogicLinesUnit class represents an intermediate result unit whose type is logic lines. Logic lines are formed by combining long lines that meet certain conditions.
Definition
Package: com.dynamsoft.ddn.intermediate_results
Inheritance: IntermediateResultUnit -> LogicLinesUnit
public class LogicLinesUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the count of LogicLine objects in current object. |
getLogicLine |
Gets a LogicLine object from current object by specifying a index. |
getLogicLines |
Gets all the LogicLine objects from current object. |
removeAllLogicLines |
Removes all the LogicLines in current object. |
removeLogicLine |
Removes a LogicLine from current object by specifying an index. |
addLogicLine |
Adds a LogicLine to current object. |
setLogicLine |
Sets the LogicLine at the specified index. |
getCount
Gets the count of LogicLine objects in current object.
public int getCount()
Return Value
The count of LogicLine objects in current object.
getLogicLine
Gets a LogicLine object from current object by specifying a index.
public LineSegment getLogicLine(int index)
Parameters
index The index of the LogicLine object.
Return Value
Returns the LogicLine object.
See Also
getLogicLines
Gets all the LogicLine objects from current object.
public LineSegment[] getLogicLines()
Return Value
Returns all the LogicLine objects as an array.
See Also
removeAllLogicLines
Removes all the LogicLines in current object.
public void removeAllLogicLines()
removeLogicLine
Removes a LogicLine from current object by specifying an index.
public void removeLogicLine(int index) throws DocumentNormalizerException
Parameters
index The index of the LogicLine to be removed.
Exceptions
addLogicLine
Adds a LogicLine to current object.
public void addLogicLine(LineSegment logicline) throws DocumentNormalizerException
public void addLogicLine(LineSegment logicline, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
logicline The LogicLine to be added.
matrixToOriginalImage The matrix to the original image. Must be a double array of length 9.
Exceptions
setLogicLine
Sets the LogicLine at the specified index.
public void setLogicLine(int index, LineSegment logicline) throws DocumentNormalizerException
public void setLogicLine(int index, LineSegment logicline, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
index The index of the LogicLine to be set.
logicline The LogicLine to be added.
matrixToOriginalImage The matrix to the original image. Must be a double array of length 9.
Exceptions