Maps a specific exposure window of an HDR image linearly to an LDR image.
This class applies a linear tone mapping operator. It isolates a specific range of exposure values and maps them linearly to the displayable Low Dynamic Range (LDR). Exposure values outside of this targeted window are clipped.
- Since
- ids_peak_icv 1.4
| Image process |
( |
| self, |
|
|
Image | hdr_image, |
|
|
float | center_exposure_value, |
|
|
float
| number_of_stops ) |
Converts an HDR image into a displayable LDR image using linear mapping.
The exposure window is defined by the center_exposure_value (in EV) and the total dynamic range specified by number_of_stops. Pixels with an exposure falling within the window [center_exposure_value - (number_of_stops / 2), center_exposure_value + (number_of_stops / 2)] are mapped linearly to the full LDR range. Values outside this window are clipped to the minimum or maximum LDR value.
Supported pixel formats
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
- Returns
- The tone-mapped image in the corresponding 8-bit format (e.g., Mono32f becomes Mono8).