Table of contents

ShortLinesUnit

The ShortLinesUnit class represents an intermediate result unit that contains the short lines. It is derived from the IntermediateResultUnit class.

Definition

Namespace: com.dynamsoft.core.intermediate_results

public class ShortLinesUnit extends IntermediateResultUnit

Methods

Method Description
getCount Gets the number of short lines in the collection.
getShortLine Gets the short line at the specified index.
getShortLines Gets all short lines.
removeAllShortLines Removes all short lines from the unit.
removeShortLine Removes the short line at the specified index.
addShortLine Adds a short line to the unit.
setShortLine Sets the short line at the specified index.

getCount

Gets the number of short lines in the collection.

int getCount()

Return Value

Returns the number of short lines in the collection.

getShortLine

Gets the short line at the specified index.

LineSegment getShortLine(int index)

Parameters

index The index of the short line to get.

Return Value

A LineSegment object that represents the short line at the specified index.

See Also

LineSegment

getShortLines

Gets all short lines.

LineSegment[] getShortLines()

Return Value

Returns an array of LineSegment objects representing all short lines.

See Also

LineSegment

removeAllShortLines

Removes all short lines from the unit.

void removeAllShortLines()

removeShortLine

Removes the short line at the specified index.

void removeShortLine(int index) throws CoreException

Parameters

index The index of the short line to remove.

Exception

CoreException

addShortLine

Adds a short line to the unit.

void addShortLine(LineSegment line) throws CoreException
void addShortLine(LineSegment line, double[] matrixToOriginalImage) throws CoreException

Parameters

line The short line to add.

matrixToOriginalImage The transform matrix to original image. The array length must be 9.

Exception

CoreException

See Also

LineSegment

setShortLine

Sets the short line at the specified index.

void setShortLine(int index, LineSegment line) throws CoreException
void setShortLine(int index, LineSegment line, double[] matrixToOriginalImage) throws CoreException

Parameters

index The index of the short line to set.

line The short line to set.

matrixToOriginalImage The transform matrix to original image. The array length must be 9.

Exception

CoreException

See Also

LineSegment

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: