Table of contents

CLogicLinesUnit Class

The CLogicLinesUnit 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

Assembly: DynamsoftDocumentNormalizer

class CLogicLinesUnit: CIntermediateResultUnit

Inheritance: CIntermediateResultUnit -> CLogicLinesUnit

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

int GetCount() 

Return Value

The count of LogicLine objects in current object.

GetLogicLine

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

const CLineSegment* GetLogicLine(int index) const = 0;

Parameters

[in] index The index of the LogicLine object.

Return Value

Returns the LogicLine object.

See Also

RemoveAllLogicLines

Removes all the LogicLines in current object.

virtual void RemoveAllLogicLines() = 0

RemoveLogicLine

Removes a LogicLine from current object by specifying an index.

virtual int RemoveLogicLine(int index) = 0

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.

virtual int AddLogicLine(const CLineSegment& logicline, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0

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.

SetLogicLine

Sets the LogicLine at the specified index.

virtual int SetLogicLine(int index, const CLineSegment& logicline, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0;

Parameters

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

[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.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: