Skip to main content

warp_affine

Function warp_affine 

Source
pub fn warp_affine(
    data: &[u8],
    size: (usize, usize),
    channels: usize,
    target: (usize, usize),
    matrix: &[f32; 6],
    border: WarpBorder,
    value: u32,
) -> Result<Vec<u8>>
Expand description

Warps a tightly packed one- to four-channel image with bilinear interpolation.

matrix maps destination coordinates to source coordinates, which is the form invert_affine produces from an affine_transform. border value fills the pixels that map outside the source.