Skip to main content

zoom

Function zoom 

Source
pub fn zoom(
    image: &Array2<f64>,
    factor: (f64, f64),
    order: usize,
    mode: Mode,
) -> Result<Array2<f64>, ErrorsJSL>
Expand description

Resizes the image by factors (rows, columns) (SciPy’s zoom with grid_mode=False): the output has round(n · factor) pixels along each axis, and its first and last pixels sample the input’s first and last pixels exactly.