HQDering mod

From Avisynth wiki
Revision as of 15:13, 16 November 2013 by Reel.Deal (Talk | contribs)

Jump to: navigation, search
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.
lsb_in bool = false
Input clip is 16-bit stacked or not.
lsb_out bool = false
Output clip is 16-bit stacked or not.
dither int = 6
Dither mode for 8-bit output.
show bool = false
Whether to output mask clip instead of filtered clip.

Parameters for ring mask

mthr int = 60
Threshold of prewitt edge mask, lower value means more aggressive processing.
minp int = 1
Inpanding of prewitt edge mask, higher value means more aggressive processing.
mrad int = 2
Expanding of edge mask, higher value means more aggressive processing.
msmooth int = 1
Inflate of edge mask, smooth boundaries of mask.
incedge bool = false
Whether to include edge in ring mask, by default ring mask only include area near edges.

Parameters for dering kernel

nrmode int =
Kernel of dering:
  • 0: dfttest
  • 1: MinBlur(radius=1)
  • 2: MinBlur(radius=2)
  • 3: MinBlur(radius=3)
nrmodec int =
Kernel of dering for chroma.
sigma float = 128.0
dfttest: sigma for medium frequecies.
sigma2 float = 8.0
dfttest: sigma for low&high frequecies
sbsize int =
dfttest: length of the sides of the spatial window
sosize int =
dfttest: spatial overlap amount

Parameters for post-processing

sharp bool = true
Whether to use contra-sharpening to resharp deringed clip.
drrep int =
Use repair for details retention, recommended values are 24/23(only for lsb=False)/13/12/1.
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.
elast float = 3.0
The same with "elast" in Dither_limit_dif16, valid value range is [1, 10.0].


Examples

Default:

AviSource("Blah.avi")
HQDeringmod()


Changelog

 26/12/2003  v0.1:  [mf]
     - initial release


External Links

Personal tools