[][src]Function imageproc::affine::affine_with_default

pub fn affine_with_default<P>(
    image: &Image<P>,
    affine: Affine2,
    default: P,
    interpolation: Interpolation
) -> Option<Image<P>> where
    P: Pixel + 'static,
    <P as Pixel>::Subpixel: ValueInto<f32> + Clamp<f32>, 

Applies an affine transformation to an image, or None if the provided transformation is not invertible. The output image has the same dimensions as the input. Output pixels whose pre-image lies outside the input image are set to default.