Skip to main content

decode_pixel

Function decode_pixel 

Source
pub fn decode_pixel(format: HeightmapFormat, rgb: [u8; 3]) -> f32
Expand description

Decode a single (R, G, B) pixel into elevation (metres) using the chosen format.