Function imageproc::pixelops::interpolate [] [src]

pub fn interpolate<P: Pixel>(left: P, right: P, left_weight: f32) -> P where
    P::Subpixel: ValueInto<f32> + Clamp<f32>, 

Equivalent to `weighted_sum(left, right, left_weight, 1 - left_weight).