Resource Base
Table of contents

CLongLinesUnit Class

The CLongLinesUnit class represents an intermediate result unit whose type is long lines. Short line segments that are located in the same line are extended and merged to form a long line segment.

Definition

Namespace: dynamsoft::ddn::intermediate_results

Assembly: DynamsoftDocumentNormalizer

class CLongLinesUnit: CIntermediateResultUnit

Inheritance: CIntermediateResultUnit -> CLongLinesUnit

Methods

Method Description
GetCount Gets the count of LongLine objects in current object.
GetLongLine Gets a LongLine object from current object by specifying a index.
RemoveAllLongLines Removes all the LongLines in current object.
RemoveLongLine Removes a LongLine from current object by specifying an index.
AddLongLine Adds a LongLine to current object.
SetLongLine Sets the LongLine at the specified index.

GetCount

Gets the count of LongLine objects in current object.

int GetCount() 

Return Value

The count of LongLine objects in current object.

GetLongLine

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

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

Parameters

[in] index The index of the LongLine object.

Return Value

Returns the LongLine object.

See Also

RemoveAllLongLines

Removes all the LongLines in current object.

virtual void RemoveAllLongLines() = 0

RemoveLongLine

Removes a LongLine from current object by specifying an index.

virtual int RemoveLongLine(int index) = 0

Parameters

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

Return Value

Returns 0 if successful, otherwise returns a negative value.

AddLongLine

Adds a LongLine to current object.

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

Parameters

[in] line The LongLine to be added.

[in] matrixToOriginalImage The matrix to the original image.

Return Value

Returns 0 if successful, otherwise returns a negative value.

SetLongLine

Sets the LongLine at the specified index.

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

Parameters

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

[in] line The LongLine 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:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.10)
  • Version 2.x
    • Version 2.2.0
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.20
    • Version 1.0.10
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support