Blender Git Loki
Git Commits -> Revision 740cd28
Revision 740cd28 by Lukas Stockner (master) May 18, 2017, 19:55 (GMT) |
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. |
Commit Details:
Full Hash: 740cd287485d919452fa4cd56a700cc0070f0c6a
Parent Commit: b3a3459
Lines Changed: +224, -8
14 Modified Paths:
/intern/cycles/device/device_cpu.cpp (+23, -0) (Diff)
/intern/cycles/device/device_cuda.cpp (+33, -0) (Diff)
/intern/cycles/device/device_denoising.cpp (+15, -1) (Diff)
/intern/cycles/device/device_denoising.h (+5, -0) (Diff)
/intern/cycles/device/opencl/opencl.h (+5, -0) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+29, -0) (Diff)
/intern/cycles/kernel/filter/filter_features.h (+4, -4) (Diff)
/intern/cycles/kernel/filter/filter_features_sse.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+51, -0) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+4, -1) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu.h (+8, -0) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu_impl.h (+15, -0) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+16, -0) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+14, -0) (Diff)
/intern/cycles/device/device_cuda.cpp (+33, -0) (Diff)
/intern/cycles/device/device_denoising.cpp (+15, -1) (Diff)
/intern/cycles/device/device_denoising.h (+5, -0) (Diff)
/intern/cycles/device/opencl/opencl.h (+5, -0) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+29, -0) (Diff)
/intern/cycles/kernel/filter/filter_features.h (+4, -4) (Diff)
/intern/cycles/kernel/filter/filter_features_sse.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+51, -0) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+4, -1) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu.h (+8, -0) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu_impl.h (+15, -0) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+16, -0) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+14, -0) (Diff)