Ask Your Question

Revision history [back]

Which pixels are included along a contour line when using cv2.drawContours

Hi all, I'm new to OpenCV and so far have few critical open questions with no answer. When I draw a filled polygon that I use as a mask, how do I know which of the pixels along the contour are included or not within this polygon? are all the pixels along the contour line are included or just those in the inner side? What about a diagonal line, how then it is determined? and if I want the outer pixels nearby the contour lines?

I will appreciate any help regarding those questions and even general information about how can I control/determine the pixels selection along contour lines. Thank you!

I'm currently using Python version 3.7.6 and openCV version 4.2.0