blender/intern/cycles/device/opencl
Lukas Stockner 740cd28748 Cycles Denoising: Add more robust outlier heuristic to avoid artifacts
Extremely bright pixels in the rendered image cause the denoising algorithm
to produce extremely noticable artifacts. Therefore, a heuristic is needed
to exclude these pixels from the filtering process.

The new approach calculates the 75% percentile of the 5x5 neighborhood of
each pixel and flags the pixel if it is more than twice as bright.

During the reconstruction process, flagged pixels are skipped. Therefore,
they don't cause any problems for neighboring pixels, and the outlier pixels
themselves are replaced by a prediction of their actual value based on their
feature pass values and the neighboring pixels.

Therefore, the denoiser now also works as a smarter despeckling filter that
uses a more accurate prediction of the pixel instead of a simple average.
This can be used even if denoising isn't wanted by setting the denoising
radius to 1.
2017-05-18 21:55:56 +02:00
..
opencl_base.cpp Cycles Denoising: Add more robust outlier heuristic to avoid artifacts 2017-05-18 21:55:56 +02:00
opencl_mega.cpp Cycles: Implement denoising option for reducing noise in the rendered image 2017-05-07 14:40:58 +02:00
opencl_split.cpp Cycles: Implement denoising option for reducing noise in the rendered image 2017-05-07 14:40:58 +02:00
opencl_util.cpp Cycles: Implement denoising option for reducing noise in the rendered image 2017-05-07 14:40:58 +02:00
opencl.h Cycles Denoising: Add more robust outlier heuristic to avoid artifacts 2017-05-18 21:55:56 +02:00