pub fn encode_heights(elevations: &[f64], width: u32, height: u32) -> Vec<u8> ⓘ
Encode a row-major elevation grid into a freshly allocated Vec<u8>.
Vec<u8>
Panics if elevations.len() < (width * height) as usize.
elevations.len() < (width * height) as usize