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.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.0.1010 (2.2.0.1010)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static int cvClipLine(
	Size imgSize,
	ref Point pt1,
	ref Point pt2
)
Public Shared Function cvClipLine ( _
	imgSize As Size, _
	ByRef pt1 As Point, _
	ByRef pt2 As Point _
) As Integer
public:
static int cvClipLine(
	Size imgSize, 
	Point% pt1, 
	Point% pt2
)

Parameters

imgSize
Size
Size of the image
pt1
Point%
First ending point of the line segment. It is modified by the function
pt2
Point%
Second ending point of the line segment. It is modified by the function.

Return Value

It returns 0 if the line segment is completely outside the image and 1 otherwise.

See Also