#######################################
Denoising with Intel Open Image Denoise
#######################################


In addition to its own image denoiser, HOOPS Luminate integrates Intel\ :sup:`®` Open Image Denoise (https://www.openimagedenoise.org/) natively.

Like the native denoiser, it allows to remove noise produced by the many samplings done during the rendering operations. 

The denoising filter is applied on the image buffer during the post process steps.

Enabling Open Image Denoise is done with the ``RED::IOptions`` interface setting the ``RED::OPTIONS_RAY_ENABLE_OPEN_IMAGE_DENOISE`` value to true.

.. note:: 
    
    Only one denoiser should be activated at a time. Either the native one or the Open Image Denoise one.

For Open Image Denoise being used, please make sure that its libraries are included next to the HOOPS Luminate library files:

    * OpenImageDenoise.dll and tbb12.dll for Windows;
    * libOpenImageDenoise.dylib and libtbb.dylib for MacOS;
    * libOpenImageDenoise.so and libtbb.so for Linux.

When calling ``RED::IWindow::FrameTracing``, only the color buffer is provided to the filter. When calling ``RED::IWindow::FrameTracingImages`` with diffuse and normal layers (``RED::RenderLayer::LT_DIFFUSE`` and ``RED::RenderLayer::LT_NORMAL``), those two layers are also provided to the filter, improving its result.

.. include:: /tasks/ta_ca/ta_ca_rendering/tk_enabling_open_image_denoise.rst