oa::image::fill_polygon
Fill a polygon over a copy of the input, following fillPoly: the points matrix carries [N, 2] vertex coordinates and every pixel whose center falls inside the even-odd winding of the polygon takes color. color applies to every plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, points is an FP32 [N, 2] matrix with at least 3 vertices on the same runtime, and color is finite.
Function Documentation
Fill a polygon over a copy of the input, following fillPoly: the points matrix carries [N, 2] vertex coordinates and every pixel whose center falls inside the even-odd winding of the polygon takes color. color applies to every plane. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image, points is an FP32 [N, 2] matrix with at least 3 vertices on the same runtime, and color is finite.