[−][src]Function opencv::imgproc::fill_poly
pub fn fill_poly(
img: &mut dyn ToInputOutputArray,
pts: &dyn ToInputArray,
color: Scalar,
line_type: i32,
shift: i32,
offset: Point
) -> Result<()>
Fills the area bounded by one or more polygons.
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 their parts), and so forth.
Parameters
- img: Image.
- pts: Array of polygons where each polygon is represented as an array of points.
- color: Polygon color.
- lineType: Type of the polygon boundaries. See #LineTypes
- shift: Number of fractional bits in the vertex coordinates.
- offset: Optional offset of all points of the contours.
C++ default parameters
- line_type: LINE_8
- shift: 0
- offset: Point()