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.
Methods Inherited from CIntermediateResultUnit:  
GetHashId Gets the hash ID of the unit.
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the image tag of the original image.
GetType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
SetHashId Sets the hash ID of the unit.
SetOriginalImageHashId Sets the hash ID of the original image.
SetOriginalImageTag Sets the image tag of the original image.
Retain Increases the reference count of the unit.
Release Decreases the reference count of the unit.
GetTransformMatrix Gets the transformation matrix via TransformMatrixType.
SetTransformMatrix Sets the transformation matrix via TransformMatrixType.

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:

Is this page helpful?

YesYes NoNo

In this article: