Skip to main content

tone_map

Function tone_map 

Source
pub fn tone_map(img: &Rgba32FImage, exposure: f32) -> RgbaImage
Expand description

Tone maps linear img for display: Reinhard at exposure (a multiplier, see stops_to_exposure), sRGB encoded. Alpha is the image’s own, clamped to 0..1 (Radiance files have none, so it is 1).