Skip to content

Commit b9b553b

Browse files
committed
Add more details to drawContour description
1 parent 110af09 commit b9b553b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/imgproc/include/opencv2/imgproc.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4584,6 +4584,8 @@ draws the contours, all the nested contours, all the nested-to-nested contours,
45844584
parameter is only taken into account when there is hierarchy available.
45854585
@param offset Optional contour shift parameter. Shift all the drawn contours by the specified
45864586
\f$\texttt{offset}=(dx,dy)\f$ .
4587+
@note In case function is called to draw all contours with filled interior (negative contourIdx and thickness) it process nested contours as shapes with holes.
4588+
In this mode function fill areas inner to odd amount of contours and avoid filling areas inner to even amount of contours using even-odd rule over all edges of all contours.
45874589
*/
45884590
CV_EXPORTS_W void drawContours( InputOutputArray image, InputArrayOfArrays contours,
45894591
int contourIdx, const Scalar& color,

0 commit comments

Comments
 (0)