MATLAB File Help: cv.drawContours Index
cv.drawContours

Draws contours outlines or filled contours

im = cv.drawContours(im, contours)
im = cv.drawContours(im, contours, 'OptionName', optionValue, ...)

Input

Output

Options

The function draws contour outlines in the image if Thickness >= 0 or fills the area bounded by the contours if Thickness < 0.

See also