MATLAB File Help: cv.fillConvexPoly Index
cv.fillConvexPoly

Fills a convex polygon

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

Input

Output

Options

The function cv.fillConvexPoly draws a filled convex polygon. This function is much faster than the function cv.fillPoly. It can fill not only convex polygons but any monotonic polygon without self-intersections, that is, a polygon whose contour intersects every horizontal line (scan line) twice at the most (though, its top-most and/or the bottom edge could be horizontal).

See also