cv.boxPoints - MATLAB File Help |
Finds the four vertices of a rotated rectangle
points = cv.boxPoints(box)
[x,y]
.[w,h]
.[x1 y1; x2 y2; x3 y3; x4 y4]
.The function finds the four vertices of a rotated rectangle. This function is useful to draw the rectangle. You can also use cv.RotatedRect.points method. Please visit the tutorial on "Creating Bounding rotated boxes and ellipses for contours" for more information.