cv.fillPoly - MATLAB File Help
cv.fillPoly

Fills the area bounded by one or more polygons

img = cv.fillPoly(img, pts)
[...] = cv.fillPoly(..., 'OptionName', optionValue, ...)

Input

Output

Options

The function cv.fillPoly fills an area bounded by several polygonal contours. The function can fill complex areas, for example, areas with holes, contours with self-intersections (some of thier parts), and so forth.

See also