# Patch Based Denoiser A P I Changes

Kris Zygmunt
2013-01-25
PERF: Provide better default config for patch-based denoiser Change the defaults for the patch-based denoiser to provide a faster default configuration. The new default does not do kernel bandwidth estimation, and only performs one iteration of denoising. Also, the default configuration now provides a default sampling strategy of sampling all the patches within 25 pixels of the current patch.

In addition, there have been some name changes to make the parameter names more consistent and understandable.

GaussianKernelSigma, DoKernelBandwidthEstimation, SigmaMultiplicationFactor, FractionPixelsForSigmaUpdate all control the kernel bandwidth estimation process and have thus all been renamed to start with KernelBandwidth resulting in the new names: KernelBandwidthSigma, KernelBandwidthEstimation, KernelBandwidthMultiplicationFactor, KernelBandwidthFractionPixelsForEstimation.

Similarly, since the noise model is only applied when the fidelity weight is nonzero, FidelityWeight has been renamed NoiseModelFidelityWeight.

filter->SetFidelityWeight( 0.1 );
filter->SetNoiseModelFidelityWeight( 0.1 );
filter->DoKernelBandwidthEstimationOn();
filter->KernelBandwidthEstimationOn();
filter->SetGaussianKernelSigma();
filter->SetKernelBandwidthSigma();
filter->SetFractionPixelsForSigmaUpdate( 0.20 );
filter->SetKernelBandwidthFractionPixelsForEstimation( 0.20 );
filter->SetSigmaMultiplicationFactor( 1.0 );
filter->SetKernelBandwidthMultiplicationFactor( 1.0 );
I4b98823bde5ecca27a993f41d3a05ffb8b1861a8
Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.h Modules/Filtering/Denoising/include/itkPatchBasedDenoisingBaseImageFilter.hxx Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.h Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx Modules/Filtering/Denoising/test/Baseline/PatchBasedDenoisingImageFilterDefaultTest.mha.md5 Modules/Filtering/Denoising/test/Baseline/PatchBasedDenoisingImageFilterTest0.mha.md5 Modules/Filtering/Denoising/test/Baseline/PatchBasedDenoisingImageFilterTestGaussian.mha.md5 Modules/Filtering/Denoising/test/Baseline/PatchBasedDenoisingImageFilterTestPoisson.mha.md5 Modules/Filtering/Denoising/test/Baseline/PatchBasedDenoisingImageFilterTestRician.mha.md5 Modules/Filtering/Denoising/test/CMakeLists.txt Modules/Filtering/Denoising/test/itkPatchBasedDenoisingImageFilterDefaultTest.cxx Modules/Filtering/Denoising/test/itkPatchBasedDenoisingImageFilterTest.cxx
FidelityWeight
NoiseModelFidelityWeight
GaussianKernelSigma
KernelBandwidthSigma
FractionPixelsForSigmaUpdate
KernelBandwidthFractionPixelsForEstimation
SigmaMultiplicationFactor
KernelBandwidthMultiplicationFactor
DoKernelBandwidthEstimation
KernelBandwidthEstimation