103 Returns the tone mapping algorithm used by this object.
105 The algorithm is defined at construction time and determines how
106 the input HDR image is converted into a displayable image.
109 The tone mapping algorithm identifier.
111 @since ids_peak_icv 1.2
113 algorithm = ctypes.c_int()
114 execute_and_map_return_codes(
115 lib_loader.dll().peak_icv_ToneMapping_GetAlgorithm,
117 ctypes.pointer(algorithm),
124 Applies tone mapping to an HDR image.
126 Processes the provided HDR image and converts it into a displayable
127 Low Dynamic Range (LDR) image using the tone mapping algorithm
128 associated with this object.
130 The input image must be compatible with the tone mapping configuration.
132 @supportedPixelformats{ToneMapping}
135 The HDR image to be tone mapped.
138 The resulting tone mapped image with pixel format Mono8 resp. RGB8.
140 @since ids_peak_icv 1.2
142 _check_icv_image(image)
145 output_pixel_format = ctypes.c_int()
146 execute_and_map_return_codes(
147 lib_loader.dll().peak_icv_ToneMapping_Process_GetOutputPixelFormat,
149 ctypes.c_int(image.pixel_format.value),
150 ctypes.pointer(output_pixel_format),
154 output_image = Image.create_from_pixel_format_and_size(
155 PixelFormat(output_pixel_format.value),
156 Size(image.width, image.height),
160 execute_and_map_return_codes(
161 lib_loader.dll().peak_icv_ToneMapping_Process,
164 output_image._handle,