Vapoursynth VagueDenoiser

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

VagueDenoiser is a wavelet denoiser: each plane is decomposed into wavelet bands, small coefficients – mostly noise – are shrunk or removed, and the picture is rebuilt. It removes fine noise and keeps edges.

Filtering → Vapoursynth → DeNoise

VagueDenoiser controls in Hybrid
VagueDenoiser controls in Hybrid

What it does

Every plane is transformed with a CDF 9/7 wavelet over several levels (Steps). Coefficients below Threshold are set to zero (hard), shrunk towards zero (soft) or treated with Qian's garrote, a middle way. Percent sets how much of this shrinking is applied. The inverse transform gives the denoised plane.

Settings

Control Parameter Range / values Hybrid default Meaning
Threshold threshold 0.01 – 10 2 Filter strength; hard thresholding tolerates higher values than soft before the picture looks overfiltered.
Method method Hard Thresholding, Soft Thresholding, Qian's Thresholding Qian's How coefficients below (and above) the threshold are treated.
Steps nsteps 1 – 10 6 Number of wavelet levels; a picture can only be split so far (about 8 levels for 640×480).
Percent percent 0 – 100 85 How much of the full denoising is applied.
Planes planes all, chroma only, luma only all Planes that are filtered (on RGB: chroma only = G and B, luma only = R).

Example

Default settings on a 10-bit YUV 4:2:0 source:

# denoising using VagueDenoiser
clip = core.neo_vd.VagueDenoiser(clip)

How Hybrid calls it

  • VagueDenoiser takes 8–16-bit integer and 32-bit float YUV, gray and RGB clips; other formats are converted first. Values are passed unchanged.
  • Values are only written when they differ from the defaults.
  • VagueDenoiser also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).

Background

neo_Vague_Denoiser

The plugin is a VapourSynth and AviSynth+ port of the VagueDenoiser filter (GPL v2). The AviSynth+ version selects planes with y/u/v instead of planes.

Sources