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

#include <peak_icv/algorithms/hdr/tone_mapping/peak_icv_linear_tone_mapping.hpp>

Inheritance diagram for LinearToneMapping:

Public Member Functions

 LinearToneMapping ()
 
 ~LinearToneMapping () override
 
Image Process (const Image &hdrImage, float centerExposureValue, float numberOfStops) const
 Converts an HDR image into a displayable LDR image using linear mapping.
 
peak::common::IntervalF GetExposureValueRange (const Image &hdrImage) const
 Computes the absolute minimum and maximum exposure values (EV) of the specified HDR image.
 

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

◆ LinearToneMapping()

LinearToneMapping ( )
inlineexplicit

◆ ~LinearToneMapping()

~LinearToneMapping ( )
inlineoverride

Member Function Documentation

◆ GetExposureValueRange()

peak::common::IntervalF GetExposureValueRange ( const Image & hdrImage) const
inline

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

Since
ids_peak_icv 1.4

◆ Process()

Image Process ( const Image & hdrImage,
float centerExposureValue,
float numberOfStops ) const
inline

Converts an HDR image into a displayable LDR image using linear mapping.

The exposure window is defined by the centerExposureValue (in EV) and the total dynamic range specified by numberOfStops. Pixels with an exposure falling within the window [centerExposureValue - (numberOfStops / 2), centerExposureValue + (numberOfStops / 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).
Since
ids_peak_icv 1.4