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

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.