HQDering mod
From Avisynth wiki
Abstract | |
---|---|
Author | mawen1250 |
Version | v1.4 |
Download | HQDeringmod |
Category | Deringing & Mosquito Noise |
Requirements | |
License | |
Discussion |
Contents |
Description
- Applies deringing by using a smart smoother near edges (where ringing occurs) only.
Required Filters
- dfttest v1.9.4
- dither v1.23.0
- MaskTools2 2.0a48+
- RemoveGrain + Repair v1.0pre
- RemoveGrainHD v0.5
Syntax and Parameters
- HQDeringmod(clip input, clip "smoothed", clip "ringmask",int "mrad", int "msmooth", bool "incedge", int "mthr", int "minp", int "nrmode", int "nrmodec", float "sigma", float "sigma2", int "sbsize", int "sosize", bool "sharp", int "drrep", float "thr", float "elast", int "Y", int "U", int "V", bool "lsb_in", bool "lsb", int "dither", bool "show")
Parameters for input/output
- Y int = 3
- U int = 2
- V int = 2
- Choose what planes to process.
- Y int = 3
- lsb_in bool = false
- Input clip is 16-bit stacked or not.
- lsb_in bool = false
- lsb_out bool = false
- Output clip is 16-bit stacked or not.
- lsb_out bool = false
- dither int = 6
- Dither mode for 8-bit output.
- dither int = 6
- show bool = false
- Whether to output mask clip instead of filtered clip.
- show bool = false
Parameters for ring mask
- mthr int = 60
- Threshold of prewitt edge mask, lower value means more aggressive processing.
- mthr int = 60
- minp int = 1
- Inpanding of prewitt edge mask, higher value means more aggressive processing.
- minp int = 1
- mrad int = 2
- Expanding of edge mask, higher value means more aggressive processing.
- mrad int = 2
- msmooth int = 1
- Inflate of edge mask, smooth boundaries of mask.
- msmooth int = 1
- incedge bool = false
- Whether to include edge in ring mask, by default ring mask only include area near edges.
- incedge bool = false
Parameters for dering kernel
- nrmode int =
- Kernel of dering:
- 0: dfttest
- 1: MinBlur(radius=1)
- 2: MinBlur(radius=2)
- 3: MinBlur(radius=3)
- Kernel of dering:
- nrmode int =
- nrmodec int =
- Kernel of dering for chroma.
- nrmodec int =
- sigma float = 128.0
- dfttest: sigma for medium frequecies.
- sigma float = 128.0
- sigma2 float = 8.0
- dfttest: sigma for low&high frequecies
- sigma2 float = 8.0
- sbsize int =
- dfttest: length of the sides of the spatial window
- sbsize int =
- sosize int =
- dfttest: spatial overlap amount
- sosize int =
Parameters for post-processing
- sharp bool = true
- Whether to use contra-sharpening to resharp deringed clip.
- sharp bool = true
- drrep int =
- Use repair for details retention, recommended values are 24/23(only for lsb=False)/13/12/1.
- drrep int =
- thr float = 10.0
- The same with "thr" in Dither_limit_dif16, valid value range is [0, 10.0], set to 0 will disable the limiting process.
- thr float = 10.0
- elast float = 3.0
- The same with "elast" in Dither_limit_dif16, valid value range is [1, 10.0].
- elast float = 3.0
Examples
Default:
AviSource("Blah.avi") HQDeringmod()
Changelog
26/12/2003 v0.1: [mf] - initial release