LongLinesUnit
The LongLinesUnit
class represents an intermediate result unit whose type is long lines. Line segments that are located in the same line are extended and merged to form a long line.
Definition
Namespace: com.dynamsoft.ddn.intermediate_results
Assembly: DynamsoftDocumentNormalizer.aar
class LongLinesUnit extends IntermediateResultUnit
Methods Summary
Methods | Description |
---|---|
getLongLines |
Get an array of LineSegment as the long lines. |
getCount |
Get the number of long lines. |
getLongLine |
Get a long line. |
removeAllLongLines |
Remove all long lines. |
removeLongLine |
Remove a long line. |
addLongLine |
Add a long line. |
setLongLine |
Set a long line. |
getLongLines
Get an array of LineSegment
as the long lines.
LineSegment[] getLongLines();
Return Value
The array of LineSegment
as the long lines.
getCount
Get the number of long lines.
int getCount();
Return Value
The number of long lines.
getLongLine
Get the long line at the specified index.
LineSegment getLongLine(int index);
Parameters
[in] index
: The index of the long line.
Return Value
A LineSegment
object as the long line at the specified index.
removeAllLongLines
Remove all long lines.
void removeAllLongLines();
removeLongLine
Remove the long line at the specified index.
int removeLongLine(int index);
Parameters
The index of the long line to be removed.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.
addLongLine
Add a long line.
int addLongLine(LineSegment line, Matrix matrixToOriginalImage);
Parameters
[in] line
: The long line to be added.
[in] matrixToOriginalImage
: The transformation matrix from the original image to the current image.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.
setLongLine
Set the long line at the specified index.
int setLongLine(int index, LineSegment line, Matrix matrixToOriginalImage);
Parameters
[in] index
: The index of the long line to be set.
[in] line
: A LineSegment
object as the long line to be set.
[in] matrixToOriginalImage
: The transformation matrix from the original image to the current image.
Return Value
Returns the ErrorCode
if failed. Otherwise, returns 0.