from2points (cv.Rect) - MATLAB File Help
cv.Rect.from2points

Create a rectangle from 2 points

r = cv.Rect.from2points(pt1, pt2)

Input

Output

Method Details
Access public
Sealed false
Static true