pub fn sample_bilinear<P>( img: &impl GenericImageView<Pixel = P>, u: f32, v: f32, ) -> Option<P>where P: Pixel,
Linearly sample from an image using coordinates in [0, 1].