Table of contents

LogicLinesUnit Class

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

Namespace: Dynamsoft.DDN.intermediate_results

class LogicLinesUnit : IntermediateResultUnit, IEnumerable<LineSegment>

Inheritance: IntermediateResultUnit -> LogicLinesUnit

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 LogicLine objects from current object.
RemoveAllLogicLines Removes all the LogicLine objects 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.

int GetCount() 

Return Value

The count of LogicLine objects in current object.

GetLogicLine

Gets a LogicLine object from current object by specifying a index.

LineSegment GetLogicLine(int index)

Parameters

[in] index The index of the LogicLine object.

Return Value

Returns the LogicLine object.

See Also

GetLogicLines

Gets all LogicLine objects from current object.

LineSegment[] GetLogicLines()

Return Value

Returns all the LogicLine objects.

See Also

RemoveAllLogicLines

Removes all the LogicLines in current object.

void RemoveAllLogicLines()

RemoveLogicLine

Removes a LogicLine from current object by specifying an index.

int RemoveLogicLine(int index)

Parameters

[in] index The index of the LogicLine to be removed.

Return Value

Returns 0 if successful, otherwise returns a negative value.

AddLogicLine

Adds a LogicLine to current object.

int AddLogicLine(LineSegment logicline, double[] matrixToOriginalImage = null)

Parameters

[in] line the LogicLine to be added.

[in] matrixToOriginalImage The matrix to the original image.

Return Value

Returns 0 if successful, otherwise returns a negative value.

See Also

SetLogicLine

Sets the LogicLine at the specified index.

int SetLogicLine(int index, LineSegment logicline, double[] matrixToOriginalImage = null)

Parameters

[in] index The index of the LogicLine to be set.

[in] logicline the LogicLine to be added.

[in] matrixToOriginalImage The matrix to the original image.

Return Value

Returns 0 if successful, otherwise returns a negative value.

See Also

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: