15#include <peak_icv_c/algorithms/hdr/peak_icv_tone_mapping.h>
124 friend peak::common::detail::BackendAccessor<ToneMapping>;
128 peak_icv_tone_mapping_handle m_handle{};
134 return PEAK_ICV_C_ABI_PREFIX peak_icv_ToneMapping_Create(&m_handle);
140 if (m_handle !=
nullptr)
142 std::ignore = PEAK_ICV_C_ABI_PREFIX peak_icv_ToneMapping_Destroy(m_handle);
148 peak_icv_tone_mapping_algorithm algorithm;
151 return PEAK_ICV_C_ABI_PREFIX peak_icv_ToneMapping_GetAlgorithm(m_handle, &algorithm);
164 auto*
const inputImageHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(image);
165 peak_common_pixel_format outputPixelFormat;
167 return PEAK_ICV_C_ABI_PREFIX peak_icv_ToneMapping_Process_GetOutputPixelFormat(
172 auto*
const outputImageHandle = peak::common::detail::BackendAccessor<Image>::BackendHandle(outputImage);
175 return PEAK_ICV_C_ABI_PREFIX peak_icv_ToneMapping_Process(m_handle, inputImageHandle, outputImageHandle);
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
peak::common::Size GetSize() const
Provides the size of the image in pixels.
peak::common::PixelFormat GetPixelFormat() const
Provides the pixel format of the image.
Performs tone mapping on HDR images.
Image Process(const Image &image) const
Applies tone mapping to an HDR image.
ToneMappingAlgorithm GetAlgorithm() const
Returns the tone mapping algorithm used by this object.
~ToneMapping() override
Destroys the tone mapping object.
ToneMapping()
Constructs a tone mapping object.
ToneMappingAlgorithm
Specifies the tone mapping algorithm.
@ Reinhard
Reinhard tone mapping operator.
constexpr peak_common_pixel_format CppPixelFormatToCPixelFormat(PixelFormat pixelFormat) noexcept
constexpr PixelFormat CPixelFormatToCppPixelFormat(peak_common_pixel_format pixelFormat) noexcept
void ExecuteAndMapReturnCodes(const CallableType &callableObject)
peak::common::detail::c_type_of_t< Type > * handle_of_t