pub fn decode(
format: HeightmapFormat,
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.