MATLAB File Help: cv.clipLine | Index |
Clips the line against the image rectangle
[B,pt1,pt2] = cv.clipLine(imgSize, pt1, pt2)
[B,pt1,pt2] = cv.clipLine(imgRect, pt1, pt2)
[w,h]
. The image rectangle is [0, 0, w, h]
.[x, y, w, h]
.[x1,y1]
.[x2,y2]
.The functions cv.clipLine calculate a part of the line segment that is entirely within the specified rectangle. They return false if the line segment is completely outside the rectangle. Otherwise, they return true.