[−][src]Function imageproc::affine::affine
pub fn affine<P>(
image: &Image<P>,
affine: Affine2,
interpolation: Interpolation
) -> Option<Image<P>> where
P: Pixel + HasBlack + '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 black.