Avisynth VagueDenoiser

From wiki.selur.net
Jump to navigation Jump to search

VagueDenoiser is a wavelet denoiser. It splits the picture into wavelet bands, shrinks or removes small coefficients, which are mostly noise, and rebuilds the picture. It removes fine noise and keeps edges.

Filtering → Avisynth → DeNoise

VagueDenoiser controls in Hybrid
VagueDenoiser controls in Hybrid

What it does

The picture is transformed into several wavelet levels (Nsteps). The Method decides what happens to coefficients below the Threshold: they are set to zero (hard), shrunk (soft) or treated by one of the other rules. The inverse transform gives the denoised picture. The filter works spatially only and is fast. It supports 8-bit clips only; Hybrid converts other bit depths down and back.

Settings

Control Parameter Range / values Hybrid default Meaning
Threshold threshold -10–10 0 Filter strength. Hard thresholding tolerates higher values than soft.
Method method No thresholding, Hard, Soft, Adaptive, Qian's, Uniformly smooth shrinking Qian's Thresholding How coefficients are treated.
Nsteps nsteps 1–10 4 Number of wavelet levels. A picture can only be split so far (about 8 levels for 640×480).
ChromaT chromaT -10–10 -1 Separate threshold for the chroma planes; -1 = not set.
Wavelet wavelet CDF 9/7, Brislawn 10/10, Villasenor-Belzer-Liao 6/10 CDF 9/7 Wavelet used for the transform.
Wiener Wiener on/off off Adds a Wiener filter step.
Ratio wratio 0.1–10 0.5 Strength ratio of the Wiener step; only with Wiener on.
Percentage percent 0–100 85 Share of the denoising that is applied.

Example

Default settings on a 10-bit YUV 4:2:0 source (Hybrid converts to 8 bit for the plugin and back):

# Converting from 10 to 8bit for VagueDenoiser
ConvertBits(8)
VagueDenoiser(threshold=0.00,method=3,interlaced=false)
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • Hybrid loads VagueDenoiser.dll.
  • The plugin accepts YV12, YUY2 and RGB32 at 8 bit. Clips with a higher bit depth are converted to 8 bit before and back afterwards.
  • Threshold, Method and interlaced are always written; interlaced is true when the clip is interlaced. The other values are only written when they differ from the defaults; Ratio only with Wiener on, ChromaT only when not -1.
  • VagueDenoiser also offers the common options and can be added to the filter queue several times.

Background

This is the classic AviSynth plugin VagueDenoiser.dll, based on Marc Lebrun's wavelet denoiser. It is not the neo_Vague_Denoiser plugin that the Vapoursynth version uses, which is why the options and defaults differ: the Vapoursynth version has threshold 2, 6 steps, three methods and works on 8–16 bit and float.

See also: Vapoursynth VagueDenoiser

Sources