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:dynamsoft::intermediate_results

*Assembly:DynamsoftCore

class ShortLinesUnit : IntermediateResultUnit, IEnumerable<LineSegment>

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 the 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

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

See Also

LineSegment

GetShortLines

Gets all the short lines.

LineSegment[] GetShortLines()

Return Value

The LineSegment object array.

See Also

LineSegment

RemoveAllShortLines

Removes all short lines from the unit.

void RemoveAllShortLines()

RemoveShortLine

Removes the short line at the specified index.

int RemoveShortLine(int index)

Parameters

index The index of the short line to remove.

Return Value

Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.

AddShortLine

Adds a short line to the unit.

AddShortLine(LineSegment lineSegment, double[] matrixToOriginalImage = null)

Parameters

lineSegment The short line to add.

matrixToOriginalImage The matrix to original image.

Return Value

Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.

See Also

LineSegment

SetShortLine

Sets the short line at the specified index.

int SetShortLine(int index, LineSegment lineSegment, double[] matrixToOriginalImage = null)

Parameters

index The index of the short line to set.

lineSegment The short line to set.

matrixToOriginalImage The matrix to original image.

Return Value

Returns 0 if the operation succeeds, or a nonzero error code if the operation fails.

See Also

LineSegment

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: