Function moving_least_squares_image::reverse_dense
source · [−]pub fn reverse_dense(
img_src: &RgbImage,
controls_src: &[(f32, f32)],
controls_dst: &[(f32, f32)],
deform_function: fn(_: &[(f32, f32)], _: &[(f32, f32)], _: (f32, f32)) -> (f32, f32)
) -> RgbImage
Expand description
Compute the warped image with an MLS algorithm. The last argument is the MLS version you choose.
The new image is back projected as if the source and destination control points were reversed.
The warp is computed densely, for every pixel.
Pixels interpolation is done with bilinear interpolation.