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.