Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to extract pixels from a rotated box2d?

I have a box2d that was returned from calling cvMinAreaRect2() on a contour, and it's rotated at 45 degrees.

I want to extract the pixels from that contour into it's own image, where the box2d is rotated so that it's upright.