StepFilter


Author V. C. Mohan
Date 20 April 2021
EMail: mohanvc

This filter attenuates regular horizontal sinusoidal or step like additive noise seen in some vhs tape conversions. Can be used to correct images similar to image in a doom9 forum thread

works in YUY2, Planar and, RGB color spaces and for all bit depths supported by avisynth+. This is thread safe : MT_NICE_FILTER.

Horizontal and vertical moving window size for computing statistics can be specified. Whether the noise is addtive (mostly so) or multiplicative can also be specified. Some blurring may happen. Also some horizontal image segments may be affected.It is possible some high values were already clipped in input. In such case if clip is set true those values will not be corrected. Proper combination of boost, and segment values yield satisfactory results.


Details of parameters
Description Name Type Limits Default
Input clip clip all color formats none
Whether noise is additive add boolean true or false true
multiply reference amplitude by this factor boost float 0.5 to 5.0 1.0
horizontal segment size segmenthor integer 0 for full frame width or 16 to width / 2 64
vertical segment size segmentvert integer 0 for full frame height or 16 to height / 2 64
Whether high values were clipped clip boolean true or false true

Usage examples
StepFilter()

StepFilter(segmenthor = 128, segmentvert = 0)

down loadmanyPlus plugin
To my index page To Avisynth