Cnr2 : Chroma Noise Reducer for AviSynth
(v2.2)
What it does:
Reduces the noise on the chroma (UV) and preserves the luma (Y)
Usage :
Work only in YUY2 mode.
Add the following lines in your .avs script :
LoadPlugin("Cnr2.dll")
#ex :
Cnr2()
Cnr2(0,35,192,47,256,47,256)
Cnr2(mode=0,ln=35,lm=192,un=47,um=256,vn=47,vm=256)
Syntax :
Cnr2([mode](0),[ln](35),[lm](192),[un](47),[um](256),[vn](47),[vm](256))
mode : -1,0,1,2 or 3.
-1 : Maximum Scene Detection ( YUV high sensibility )
0 : Default Mode ( Y based )
1 : Enhanced U mode : ( YU based )
2 : Enhanced V mode : ( YV based )
3 : Enhanced UV mode : ( YUV based )
The enhanced modes will denoise more aggressively,
at the cost of less scene-change sensibility
ln,lm,un,um,vn,vm : 0 to 256.
the n values are the scene-change sensibility :
higher values will denoise more, but could produce artifacts
the m values are the max effectiveness of the denoiser :
Lower them to reduce the denoising effect.
-Cnr2()
-Cnr2(0,35,192,47,256,47,256)
-Cnr2(mode=0,ln=35,lm=192,un=47,um=256,vn=47,vm=256)
would produce the same result.
History :
This Filter is inspired by the Virtual Dub filter Chroma Noise Reduction 1.1 (by Gilles Mouchard)
cnr 1.1 was a good chroma filter but was using YUV conversion to do is job.
I used it for VHS encodes, because it was the better Chroma Noise filter i tested
But when i used AviSynth and Huffyuv, I didn't wanted to use it anymore (i like to keep YUY2 colorspace)
So i take a look on the code and wrote my own filter from scratch, but based of the same algo.
the output of cnr2 is 99,9% to 100% the same as cnr (due to YUY2 colorspace)
and it's 3x-5x faster (Cnr2 can do real-time denoising in 640x480x25fps with a 1,5 Ghz CPU)
version 2.1 (31.7.2002)
little review. corrections.
Ditribution :
This is a free sofware distribued under the terms of the GNU-GPL v2
The only restriction is to e-mail me if you want to do something with
the source because i don't want you to lose your time to decode my
cryptic C,C++,Delphi (or any other language) writing.
Thanks :)
Contact :