Function slic_from_bytes

Source
pub fn slic_from_bytes(
    k: u32,
    m: u8,
    width: u32,
    height: u32,
    iter: Option<u8>,
    image: &[u8],
) -> Result<Vec<usize>, ScError>
Expand description

Calculate SLIC by providing a buffer of RGB component bytes as &[u8].

iter will default to 10 if None is supplied.

k must not be 0. m is clamped to be between 1 and 20. width and height must not be 0.