Let's say i have the following image:
And my region of interest looks like this:
And i want to have the following result:
How can i achieve this knowing that the ROI is denoted by four points:
Point pt1(129,9);
Point pt2(284,108);
Point pt3(223,205);
Point pt4(67,106);
The idea is to use
fillPoly()
to fill all the pixels inside the rotated-rectangle/polygon to 0, 255 otherwise: