F1QClean


Author V. C. Mohan
Date Mar 2022
EMail: mohanvc

The freq domain filter functions require FFTw3f 32 bit dll or for 64 bit FFTw3f 64 bit dll, to be in the path.
The F1QClean cleans or limits the freq spectrum to eliminate noise. In option = 0, the spectrum between first and second values in the frequency array is examined within span at each frequency . if median is more than original value, it is substituted by median value. In option = 1 , the maximum value within a span around the specified frequency values are limited to the % age of original. Up to ten noise spike frequencies can be specified in this option. An image is defined mostly by the low frequencies. As such general cleaning them may be avoided.Choose the first value as high as possible.


Processes row by row using one dimensional fft.The freq values must correspond to what is indicated by ruler in F1QTest.
For input format of RGB or YUV444 all 3 planes are processed. In case of other YUV formats only Y is processed. YUY2 is not accepted.

parameters


Details of parameters
Description Name Type Limits Default
Input clip clip YUY2 not accepted none
Array of values sets of integers. For option = 0, only 2 values (from and upto) can be specified. In option = 1, 1 to 10 frequencies can be specified. 2 for option = 0 and 1 to 10 for option = 1 must be specified. none
option for clean or limit option integer 0 or 1 0
Span in which to examine span integer 5 to 49 7
Limiting %age for option = 1 limit integer 0 to 99 1

Usage examples:-
assumefieldbased()
F1q = F1QTest(5,50,60,10)
F1QClean(126,40,option = 0, span = 11)
#F1QClean(36,60,150,170,220, option = 1,span = 11, limit = 0)
#F1qa = F1QTest(5,50,60,10)
#stackHorizontal (F1q, F1qa)

To my index page down load plugin To Avisynth