1 | initial version |
The RotatedRect contains all the information you need. The long side is the semi-major, the short side is the semi-minor, the center, and the rotation.
You can use standard geometry to find the points, or, if you want image pixels, take a blank image and use cv::ellipse to draw with white and make a mask.