Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no, it's not possible, a ROI is a rectangle by definition.

what you can do is: draw your shape filled into an empty black image, and use it as a mask for operations like bitwise_and(), subtract(), copyTo() etc.

no, it's not possible, a ROI is a rectangle by definition.

what you can do is: draw your shape filled white into an empty black image, and use it as a mask for operations like bitwise_and(), subtract(), copyTo() etc.