Function moving_least_squares_image::source · [−]
pub fn reverse_dense(
controls_src: &[(f32, f32)],
controls_dst: &[(f32, f32)],
deform_function: fn(_: &[(f32, f32)], _: &[(f32, f32)], _: (f32, f32)) -> (f32, f32)
) -> RgbImage
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.