VapourSynth-BM3D icon indicating copy to clipboard operation
VapourSynth-BM3D copied to clipboard

How to improve the strength of denoising by adjusting parameters?

Open LAccordeur opened this issue 6 years ago • 4 comments

I had tried to change the sigma, the radius, the profile and other parameters, but these didn't work on some noise videos. Can you give me some advice?

LAccordeur avatar Jul 04 '18 08:07 LAccordeur

Personally I haven't found BM3D to be ajustable at all in terms of denoising strength. Sigma=9 is what always worked best in my tests.

To increase denoising strength, one trick is to use SMDegrain as a first pass and pass it as the ref parameter. That's what xClean is doing.

mysteryx93 avatar Oct 17 '21 18:10 mysteryx93

Basically "sigma" works as a threshold for frequency filtering. It seems the strength of the noise is way higher above the threshold, so you may need to try much higher "sigma".

For very strong noise with temporal fluctuation, pure BM3D may not work very well. As @mysteryx93 mentioned, passing a pre-filtered clip as "ref" may help. (while personally I haven't found a good enough filter at the time I wrote BM3D)

mawen1250 avatar Oct 18 '21 07:10 mawen1250

Personally I haven't found BM3D to be ajustable at all in terms of denoising strength. Sigma=9 is what always worked best in my tests.

To increase denoising strength, one trick is to use SMDegrain as a first pass and pass it as the ref parameter. That's what xClean is doing.

Indeed, I also found that I constantly set sigma=8 whenever I use BM3D for denoising. This might be because it's a good trade-off between noise reduction and over-smoothness.

mawen1250 avatar Oct 18 '21 07:10 mawen1250

What I found is that sigma changes the sharpness of the edges; with little or no impact on removed noise. Anything below 9 (or 8) is "not enough" and anything above 9 gives too sharp edges, from my tests.

mysteryx93 avatar Oct 18 '21 15:10 mysteryx93