cv.clipLine - MATLAB File Help
cv.clipLine

Clips the line against the image rectangle

[B,pt1,pt2] = cv.clipLine(imgSize, pt1, pt2)
[B,pt1,pt2] = cv.clipLine(imgRect, pt1, pt2)

Input

Output

The function cv.clipLine calculates a part of the line segment that is entirely within the specified rectangle. It returns false if the line segment is completely outside the rectangle. Otherwise, it returns true.

See also