Skip to main content

fill_poly

Function fill_poly 

Source
pub fn fill_poly(
    image: &mut Tensor,
    points: &[(i32, i32)],
    color: [f32; 3],
) -> Result<(), ImgProcError>
Expand description

Fill a polygon region on a u8 image. Fill a polygon using scanline fill on a [H, W, 3] image tensor.