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.
2 | No.2 Revision |
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.