ndimage
Provides traits that allow conversion between ndarray crate and image crate.
It can be used for debugging, testing, or for using ndarray's image processing capabilities on image crate's images.
Drawbacks
The conversion from ndarray to image is not zero-copy. Only supports RGB and Gray images currently.
Usage
Borrow as mutable and call mut_ndarray method to get a mutable reference to the ndarray.
use MutNdarray;
use ;
let mut vals = new;
vals.mut_ndarray;
Borrow as immutable and call ref_ndarray method to get a reference to the ndarray.
use RefNdarray;
use ;
let vals = new;
vals.ref_ndarray;
Convert from image to ndarray.
use IntoNdarray;
use ;
let vals = new;
let arr = vals.into_ndarray;