Skip to main content

decode

Function decode 

Source
pub fn decode(rgb: &[u8], width: u32, height: u32) -> Vec<f32>
Expand description

Decode a flat width × height × 3 RGB buffer back to elevations.

§Panics

Panics if rgb.len() != (width * height * 3) as usize.