pub fn interpolate_bilinear<P: Pixel>(
    img: &impl GenericImageView<Pixel = P>,
    x: f32,
    y: f32
) -> Option<P>
Expand description

Image sampling Linearly sample from an image using coordinates in [0, w-1] and [0, h-1].