Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fill an image with the content of RotatedRect

I have:

   Mat myImage;
   RotatedRect(myCenter,mySize,myAngle);

I would like to fill with black the rotated rectangle inside myImage.

Any fast/elegant way to do it?

Fill an image with the content of RotatedRect

I have:

   Mat myImage;
   RotatedRect(myCenter,mySize,myAngle);

I would like to fill with black the rotated rectangle inside myImage.

Any fast/elegant way to do it?it?
Note: I would avoid to rotate the image just to fill that rotatedRect