Update imgproc.hpp

rewrote the added note in perhaps a cleaner way
pull/9986/head
Vadim Pisarevsky 7 years ago committed by GitHub
parent b9b553b8bc
commit ec076bfba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      modules/imgproc/include/opencv2/imgproc.hpp

@ -4584,8 +4584,11 @@ draws the contours, all the nested contours, all the nested-to-nested contours,
parameter is only taken into account when there is hierarchy available. parameter is only taken into account when there is hierarchy available.
@param offset Optional contour shift parameter. Shift all the drawn contours by the specified @param offset Optional contour shift parameter. Shift all the drawn contours by the specified
\f$\texttt{offset}=(dx,dy)\f$ . \f$\texttt{offset}=(dx,dy)\f$ .
@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. @note When thickness=CV_FILLED, the function is designed to handle connected components with holes correctly
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. even when no hierarchy date is provided. This is done by analyzing all the outlines together
using even-odd rule. This may give incorrect results if you have a joint collection of separately retrieved
contours. In order to solve this problem, you need to call drawContours separately for each sub-group
of contours, or iterate over the collection using contourIdx parameter.
*/ */
CV_EXPORTS_W void drawContours( InputOutputArray image, InputArrayOfArrays contours, CV_EXPORTS_W void drawContours( InputOutputArray image, InputArrayOfArrays contours,
int contourIdx, const Scalar& color, int contourIdx, const Scalar& color,

Loading…
Cancel
Save