from2points (cv.Rect) - MATLAB File Help
cv.Rect.from2points
Create a rectangle from 2 points
r =
cv.Rect.from2points
(pt1, pt2)
Input
pt1
First point
[x1,y1]
.
pt1
Second point
[x2,y2]
.
Output
r
output rectangle
[x,y,w,h]
.
Method Details
Access
public
Sealed
false
Static
true