[−][src]Function opencv::imgproc::fill_convex_poly
pub fn fill_convex_poly(
img: &mut dyn ToInputOutputArray,
points: &dyn ToInputArray,
color: Scalar,
line_type: i32,
shift: i32
) -> Result<()>
Fills a convex polygon.
The function cv::fillConvexPoly draws a filled convex polygon. This function is much faster than the function #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).
Parameters
- img: Image.
- points: Polygon vertices.
- color: Polygon color.
- lineType: Type of the polygon boundaries. See #LineTypes
- shift: Number of fractional bits in the vertex coordinates.
C++ default parameters
- line_type: LINE_8
- shift: 0