Expand description
High dynamic range images (Radiance HDR and OpenEXR): decoding to linear floating point and tone mapping for display.
Eagle tone-maps these with Reinhard at an exposure of 1.0 and sRGB
output; tone_map does the same per channel: scale by the exposure,
c / (1 + c), then the linear to sRGB encode.
Functions§
- decode_
linear - Decodes
pathto linear RGBA floats, turned by its orientation if any. - is_hdr
- Whether
ext(lowercase) is a high dynamic range format. - stops_
to_ exposure - Exposure multiplier for a slider in stops (EV): 2^stops.
- tone_
map - Tone maps linear
imgfor display: Reinhard atexposure(a multiplier, seestops_to_exposure), sRGB encoded. Alpha is the image’s own, clamped to 0..1 (Radiance files have none, so it is 1).