![]() |
IDS peak ICV v1.2.0
|
Public Member Functions | |
| None | __init__ (self, *Any args, **Any kwargs) |
| Constructs a tone mapping object. | |
| None | __del__ (self) |
| Destroys the tone mapping object. | |
| ToneMappingAlgorithm | algorithm (self) |
| Returns the tone mapping algorithm used by this object. | |
| None | algorithm (self, ToneMappingAlgorithm algorithm) |
| Sets the tone mapping algorithm. | |
| Image | process (self, Image image) |
| Applies tone mapping to an HDR image. | |
Protected Attributes | |
| _handle = peak_icv_tone_mapping_handle() | |
Performs tone mapping on HDR images.
This class provides functionality to convert a High Dynamic Range (HDR) image into a displayable Low Dynamic Range (LDR) image using a tone mapping algorithm.
Internally, tone mapping is performed using the Reinhard tone mapping operator, which is currently the only supported algorithm. The algorithm is fixed at object creation time.
ToneMapping objectprocess to convert an HDR image into an LDR imageDefinition at line 45 of file tone_mapping.py.
| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
Constructs a tone mapping object.
Creates and initializes a tone mapping object using the default tone mapping algorithm (Reinhard).
Definition at line 71 of file tone_mapping.py.
| None __del__ | ( | self | ) |
Destroys the tone mapping object.
Releases all resources associated with the tone mapping object.
Definition at line 87 of file tone_mapping.py.
| ToneMappingAlgorithm algorithm | ( | self | ) |
Returns the tone mapping algorithm used by this object.
The algorithm is defined at construction time and determines how the input HDR image is converted into a displayable image.
Definition at line 100 of file tone_mapping.py.
| None algorithm | ( | self, | |
| ToneMappingAlgorithm | algorithm ) |
Sets the tone mapping algorithm.
| algorithm | The tone mapping algorithm to use. |
Definition at line 122 of file tone_mapping.py.
Applies tone mapping to an HDR image.
Processes the provided HDR image and converts it into a displayable Low Dynamic Range (LDR) image using the tone mapping algorithm associated with this object.
The input image must be compatible with the tone mapping configuration.
| image | The HDR image to be tone mapped. |
Definition at line 138 of file tone_mapping.py.
|
protected |
Definition at line 81 of file tone_mapping.py.