Using ROI in OpenCV?
问题 ROI can only be implemented with an rectangle. I however have a contour that I want to set as an ROI. Does anyone have an idea of how I would go about using a contour as an ROI rather than a rectangle? Otherwise if not possible, how could I focus my actions only in pixels in a specific contour? Thanks PS: Sorry for all these OpenCV questions. Just really confused :$ 回答1: OpenCV supports only rectangular ROIs. However, to make some processing for specific pixels, you can use some helper