[][src]Function geogrid::util::mat_to_img

pub fn mat_to_img<T: Clone + Ord + Num + ToPrimitive, P: AsRef<Path>>(
    t: &[T],
    dim: (usize, usize),
    p: P,
    clip: Option<(T, T)>
)

Write given 2D numerical matrix to a scaled grayscale image at requested path. Clip specifies lower, upper bounds of values that will be clipped to black/white.