Public Member Functions | |
| None | __init__ (self, *Any args, **Any kwargs) |
| Constructs an HDR processing object. | |
| None | __del__ (self) |
| Destroys the HDR object and releases backend resources. | |
| HDRAlgorithm | algorithm (self) |
| Returns the HDR algorithm used by this object. | |
| None | estimate_response_curve (self, ImageArray images) |
| Estimates the Camera Response Curve (CRC) from a set of input images. | |
| Image | process (self, ImageArray images) |
| Generates an HDR image from the specified input images. | |
| ResponseCurve | response_curve (self) |
| None | response_curve (self, ResponseCurve response_curve) |
Protected Attributes | |
| _handle = peak_icv_hdr_handle() | |
Performs High Dynamic Range (HDR) image reconstruction.
This class provides functionality to generate a High Dynamic Range (HDR) image from a set of input images captured with different exposure settings. The input images are expected to depict the same scene while varying exactly one parameter: either the exposure time OR the gain.
Internally, the HDR reconstruction is performed using the Debevec algorithm. A key part of this process is determining the Camera Response Curve (CRC), which maps digital pixel values to relative radiance. The algorithm is fixed at construction time.
HDR objectestimate_response_curve()process()| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
Constructs an HDR processing object.
Creates and initializes an HDR object using the default HDR reconstruction algorithm (Debevec).
| None __del__ | ( | self | ) |
Destroys the HDR object and releases backend resources.
| HDRAlgorithm algorithm | ( | self | ) |
Returns the HDR algorithm used by this object.
The algorithm is defined at construction time and determines how the input images are combined during HDR reconstruction.
| None estimate_response_curve | ( | self, | |
| ImageArray | images ) |
Estimates the Camera Response Curve (CRC) from a set of input images.
This method calculates the response characteristics of the camera sensor. The CRC defines the relationship between scene radiance and the measured pixel values.
All input images must meet the following conditions:
ids_peak_common.datatype.MetadataKey.DeviceExposureTime or ids_peak_common.datatype.MetadataKey.DeviceGain).Performing this estimation step explicitly can significantly reduce the processing time of subsequent calls to process(), as the curve does not need to be re-calculated.
If this method is not called, the response curve is estimated automatically during the first call to process().
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
| images | Images of the same scene with different exposure time or gain metadata. Must not be empty. |
| Image process | ( | self, | |
| ImageArray | images ) |
Generates an HDR image from the specified input images.
Processes the provided images and combines them into a single HDR image.
If a pixel is under- or overexposed across all input images this pixel is clamped to the HDR image's global minimum or maximum values, respectively. All clamped pixels are excluded from the image region.
All input images must meet the following conditions:
ids_peak_common.datatype.MetadataKey.DeviceExposureTime or ids_peak_common.datatype.MetadataKey.DeviceGain).If the camera response curve has not been explicitly estimated using estimate_response_curve(), an internal estimation step is performed automatically when it is first called. This may increase the overall processing time for the first call.
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
| images | Images of the same scene with different exposure time or gain metadata. Must not be empty. |
| ResponseCurve response_curve | ( | self | ) |
| NotPossibleException | No response curve is currently set. Use the response_curve property or estimate_response_curve() method to set a response curve first. |
| None response_curve | ( | self, | |
| ResponseCurve | response_curve ) |
|
protected |