Function interpolate_bilinear
pub fn interpolate_bilinear<P>(
img: &impl GenericImageView<Pixel = P>,
x: f32,
y: f32,
) -> Option<P> ⓘwhere
P: Pixel,
Available on crate feature
dep_image
only.Expand description
Linearly sample from an image using coordinates in [0, w-1] and [0, h-1].