Thanks to visit codestin.com
Credit goes to docs.rs

load_image

Function load_image 

Source
pub fn load_image<T>(filename: String, is_color: bool) -> Array<T>
where T: HasAfEnum + RealNumber,
Expand description

Load Image into Array

Only, Images with 8/16/32 bits per channel can be loaded using this function.

§Parameters

  • filename is aboslute path of the image to be loaded.
  • is_color indicates if the image file at given path is color or gray scale.

§Return Arrays

An Array with pixel values loaded from the image