pub fn warp_into(
input: &Rgba32FImage,
matrix: Matrix3<f32>,
output: &mut Rgba32FImage
)
Examples found in repository?
examples/warp/main.rs (line 34)
26 27 28 29 30 31 32 33 34 35 36 37
fn main() {
let input = read_rgb_image("t1.jpg");
let mut output = Rgba32FImage::new(256, 256);
let mut matrix = Matrix3::identity();
matrix = matrix.append_translation(&Vector2::new(-100f32, 0f32));
warp_into(&input, matrix, &mut output);
_ = to_rgb8(output).save("saved_t1.jpg");
}