Fan


Author V. C. Mohan
Date 1 Oct 2020

Regular frequency noise patterns are seen on some data. Some videos have white streaks. Such videos can be cleaned through Fan function. Fan can also be used to filter random noise.

Fan filters one horizontal line after next. So noise appearing as vertical to sub vertical alignments can be processed. For data having horizontal or sub horizontal alignments, process after turnleft and later turnright. If noise is regular appears as waves then Span may encompass the full wave length. For streaks it can be short.

If edge option is selected tries to preserve edges. Otherwise some averaging may result. tolerances on plus side and minus side can be specified to minimise averaging. Only data which are beyond these tolerances from average are modified. 1.0 corresponds to maximum amplitude of input data.

Packed RGB ( 8 and 16 bit), YUY2 and 8, 16 or 32 bit Planar formats are supported. This is thread safe. MT_NICE_FILTER

Details of parameters
Description Name Type Limits Default
Input clip clip none
edge to be preserved? edge boolean true for yes, false for no true
span of filter span integer odd number between 3 to width / 4 5
u and v also to be filtered? uv boolean true for yes, false for no true
plus tolerance plus float 0 to 0.5 0.02
minus tolerance minus float 0 to 0.5 0.02

Usage examples:-
Fan(a,span = 7,edge = true, uv = true, plus = 0.05, minus = 0.05) To Avisynth
To my index page down load manyPlus plugin