Blender Git Loki
Git Commits -> Revision 705c43b
Revision 705c43b by Lukas Stockner (master) June 9, 2017, 01:46 (GMT) |
Cycles Denoising: Merge outlier heuristic and confidence interval test The previous outlier heuristic only checked whether the pixel is more than twice as bright compared to the 75% quantile of the 5x5 neighborhood. While this detected fireflies robustly, it also incorrectly marked a lot of legitimate small highlights as outliers and filtered them away. This commit adds an additional condition for marking a pixel as a firefly: In addition to being above the reference brightness, the lower end of the 3-sigma confidence interval has to be below it. Since the lower end approximates how low the true value of the pixel might be, this test separates pixels that are supposed to be very bright from pixels that are very bright due to random fireflies. Also, since there is now a reliable outlier filter as a preprocessing step, the additional confidence interval test in the reconstruction kernel is no longer needed. |
Commit Details:
Full Hash: 705c43be0bf232cbba9dd278e1307d894568f2e0
Parent Commit: 8a757bf
Lines Changed: +36, -80
15 Modified Paths:
/intern/cycles/device/device_cpu.cpp (+6, -10) (Diff)
/intern/cycles/device/device_cuda.cpp (+3, -7) (Diff)
/intern/cycles/device/device_denoising.cpp (+1, -1) (Diff)
/intern/cycles/device/device_denoising.h (+0, -2) (Diff)
/intern/cycles/device/opencl/opencl.h (+0, -2) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+3, -9) (Diff)
/intern/cycles/kernel/filter/filter_features.h (+3, -9) (Diff)
/intern/cycles/kernel/filter/filter_nlm_cpu.h (+0, -3) (Diff)
/intern/cycles/kernel/filter/filter_nlm_gpu.h (+0, -3) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+16, -7) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+3, -16) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu_impl.h (+1, -3) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+0, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+0, -3) (Diff)
/intern/cycles/device/device_cuda.cpp (+3, -7) (Diff)
/intern/cycles/device/device_denoising.cpp (+1, -1) (Diff)
/intern/cycles/device/device_denoising.h (+0, -2) (Diff)
/intern/cycles/device/opencl/opencl.h (+0, -2) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+3, -9) (Diff)
/intern/cycles/kernel/filter/filter_features.h (+3, -9) (Diff)
/intern/cycles/kernel/filter/filter_nlm_cpu.h (+0, -3) (Diff)
/intern/cycles/kernel/filter/filter_nlm_gpu.h (+0, -3) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+16, -7) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+3, -16) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/filter_cpu_impl.h (+1, -3) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+0, -3) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+0, -3) (Diff)