F2Qlimit function transform image into 2d frequency domain, attenuates at specified locations and transforms back into image domain. This is easier to use than the more daunting but powerful F2Quiver function. This function operates in frequency domain and requires for 32 bit avisynth+ FFTw3 32 bit dll or for 64 bit avisynth+ FFTw3 64 bit dll As these dlls are not thread safe this function operates in MT_SERIALIZED state.
filter values specified must correspond to those seen in F2Qtest display. Filters are specified by sets of 3 integers:
First Integer is Frequency along width x, second integer is frequency along height y. and third Integer is % age of retention. x should be positive. As spectrum is diagonally symmetrical specify corresponding frequency y ( plus or minus)
Up to 12 such sets can be specified and they will be cascaded.
The function searches the maximum value around this point within -grid to + grid. Frequency values in a square of 'inner' are multiplied by %age / 100.
Please note that all filters have diagonal quadrant symmetry as the power spectrum behaves such. ( First and third quadrants are similar so also 2nd and 4th Quadrants).
F2Qlimit accepts Only Planar Y U V or packed RGB formats. F2Qlimit on the other hand filters all 3 colors of RGB and Y of YUV formats.
Description | Name | Type | Limits | Default |
Input clip | clip | none | ||
Array of values | sets of 3 integers. atleast one set must be specified. | none | ||
grid size | grid | int | 1 to 40 | 10 |
inner size | inner | int | 0 to 5 | 1 |
# F2Qlimit(0,25,14, 0,75,15,0,140,16, grid = 10, inner = 4)