Function libvips::ops::linear

source ·
pub fn linear(inp: &VipsImage, a: &mut [f64], b: &mut [f64]) -> Result<VipsImage>
Expand description

VipsLinear (linear), calculate (a * in + b) inp: &VipsImage -> Input image a: &[f64] -> Multiply by this. Must have equal len as b b: &[f64] -> Add this. Must have equal len as a returns VipsImage - Output image