Dering
From Avisynth wiki
Abstract | |
---|---|
Author | alexrayne |
Version | Release 4 |
Download | deringing-sample.zip |
Category | Deringing & Mosquito Noise |
License | LGPLv2.1 |
Discussion |
Contents |
Description
This plugin removes halo\ringing occurred after sharp edges on VHS captured video
Note: Dering is a C-plugin so it must be loaded using LoadCPlugin, except if you're using AviSynth+, it allows autoloading of C-plugins.
Requirements
- [x86] AviSynth+ or AviSynth 2.6.0
- Supported color formats: YUY2, YV12
Syntax and Parameters
- Dering (clip src, float "A", float "W", float "RelVisibleTh", float "AbsVisibleTh", int "PostFilterArea", string "PostFilter", float "Dump", int "Edges", string "PreFilter", bool "SkipAlonePeaks", bool "UseEmphasis", string "OutPlane")
- clip =
- Input clip; must be YUY2 or YV12.
- clip =
- float A = 0.3
- Ringing amplitude relative to edge size.
- float A = 0.3
- float W = 0.35
- Ringing frequency - distance between ringing peaks.
- float W = 0.35
- float RelVisibleTh = 0.005
- Value of (ringing amplitude)/(steady signal value).
- If detected amplitude < VisibleTh, this ringing area skip from correction.
- Range 0.0 to 1.0
- float RelVisibleTh = 0.005
- float AbsVisibleTh = 0.01
- Value of (ringing amplitude)/(full dynamic luma range = 255).
- If detected amplitude < VisibleTh, this ringing area skip from correction.
- Range 0.0 to 1.0
- float AbsVisibleTh = 0.01
- int PostFilterArea = 1000
- Limit of filtering area length on ringing.
- int PostFilterArea = 1000
- string PostFilter = "median"
- Type of smoothing post filter applied after deringing:
- "median" - median filter y=(2*x[n]-x[n-1]-x[n+1])/2
- "median2" - 2nd order median filter y=(2*x[n]-x[n-1]-x[n+1])/2
- "backiir" - back direction IIR2 filter (see D parameter)
- "iir" - forward direction IIR2 filter (see D parameter)
- Type of smoothing post filter applied after deringing:
- string PostFilter = "median"
- float Dump = 0.3
- Dumping of PostFilter.
- float Dump = 0.3
- int Edges = 0
- Which polarity of edges to process: 0 - both, <0 - falling only, >0 rising only.
- int Edges = 0
- string PreFilter = "FIR2"
- Type of main deringer filter:
- "FIR2" - ordinary fir2 filter
- "deltaFIR" - compensator by pre-rendered ringing G-respondents
- Any other use FIR2 on resampled x2 inputs
- Type of main deringer filter:
- string PreFilter = "FIR2"
- bool SkipAlonePeaks = true
- Alone peaks can be lost unfiltered if true, or filter as usual peak if false.
- bool SkipAlonePeaks = true
- bool UseEmphasis = false
- If true, it tries to enhance the front edge when the deltaFIR filter is used.
- bool UseEmphasis = false
- string OutPlane = "filter"
- Type of output:
- "filter'" - filtered image
- "AllPeaks" - detected peaks in input image
- "Peaks" - peaks in image selected for filtering
- Type of output:
- string OutPlane = "filter"
Examples
Dering with default settings:
AviSource("Blah.avi") Dering(A=0.3, W=0.35, RelVisibleTh=0.005, AbsVisibleTh=0.01, PostFilterArea=1000, PostFilter="median", \ Dump=0.3, Edges=0, PreFilter="FIR2", SkipAlonePeaks=true, UseEmphasis=false, OutPlane="filtered")
External Links
Back to External Filters ←