LongLinesUnit Class
The LongLinesUnit 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
class LongLinesUnit : IntermediateResultUnit, IEnumerable<LineSegment>
Inheritance: IntermediateResultUnit -> LongLinesUnit
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. |
GetLongLines |
Gets all LongLine objects from current object. |
RemoveAllLongLines |
Removes all the LongLine objects 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.
LineSegment GetLongLine(int index)
Parameters
[in] index The index of the LongLine object.
Return Value
Returns the LongLine object.
See Also
GetLongLines
Gets all LongLine objects from current object.
LineSegment[] GetLongLines()
Return Value
Returns all the LongLine objects.
See Also
RemoveAllLongLines
Removes all the LongLine objects in current object.
void RemoveAllLongLines()
RemoveLongLine
Removes a LongLine from current object by specifying an index.
int RemoveLongLine(int index)
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.
int AddLongLine(LineSegment line, double[] matrixToOriginalImage = null)
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.
See Also
SetLongLine
Sets the LongLine at the specified index.
int SetLongLine(int index, LineSegment line, double[] matrixToOriginalImage = null)
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.
See Also