Clips the line against the image rectangle
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- imgSize
- Type: OpenCvSharpCvSize
Size of the image. - pt1
- Type: OpenCvSharpCvPoint
First ending point of the line segment. It is modified by the function. - pt2
- Type: OpenCvSharpCvPoint
Second ending point of the line segment. It is modified by the function.
Return Value
Type: Int32The function cvClipLine calculates a part of the line segment which is entirely in the image. It returns 0 if the line segment is completely outside the image and 1 otherwise.
See Also