[][src]Function imageproc::geometric_transformations::warp

pub fn warp<P>(
    image: &Image<P>,
    projection: &Projection,
    interpolation: Interpolation,
    default: P
) -> Image<P> where
    P: Pixel + Send + Sync + 'static,
    <P as Pixel>::Subpixel: Send + Sync,
    <P as Pixel>::Subpixel: ValueInto<f32> + Clamp<f32>, 

Applies a projective transformation to an image.

The returned image has the same dimensions as image. Output pixels whose pre-image lies outside the input image are set to default.

The provided projection defines a mapping from locations in the input image to their corresponding location in the output image.