IDS peak ICV v1.4.0
Loading...
Searching...
No Matches
LinearToneMapping Class Reference

Public Member Functions

None __init__ (self, *Any args, **Any kwargs)
 
None __del__ (self)
 
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.
 
Interval get_exposure_value_range (self, Image hdr_image)
 Computes the absolute minimum and maximum exposure values (EV) of the specified HDR image.
 

Protected Attributes

 _handle = peak_icv_tone_mapping_linear_handle()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

None __init__ ( self,
*Any args,
**Any kwargs )

◆ __del__()

None __del__ ( self)

Member Function Documentation

◆ get_exposure_value_range()

Interval get_exposure_value_range ( self,
Image hdr_image )

Computes the absolute minimum and maximum exposure values (EV) of the specified HDR image.

Since
ids_peak_icv 1.4

◆ process()

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
  • Mono32f
  • RGB32f

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).

Field Documentation

◆ _handle

_handle = peak_icv_tone_mapping_linear_handle()
protected