Vapoursynth DGDenoise

From wiki.selur.net
Revision as of 21:31, 14 November 2026 by Selur (talk | contribs) (New filter page (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DGDenoise is a fast spatial Non-Local Means denoiser by Donald Graft that runs on NVIDIA GPUs. It is part of the DGDecNV package.

Filtering → Vapoursynth → DeNoise

DGDenoise controls in Hybrid
DGDenoise controls in Hybrid

What it does

Each pixel is replaced by a weighted average of pixels from its search window whose surroundings look similar (Non-Local Means). Luma and chroma have their own strength, and a blend factor mixes part of the original pixel back in. The VapourSynth version works on single frames only.

Requirements

  • Windows and an NVIDIA GPU with CUDA; without such a card Hybrid does not offer the filter.

Settings

Control Parameter Range / values Hybrid default Meaning
Strength (luma) strength 0.01 – 1.00 0.15 Denoising strength on luma; typical values 0.1–1.0.
Strength (chroma) cstrength 0 – 1.00 0 Denoising strength on chroma; 0 switches chroma denoising off.
Blend (luma / chroma) blend, cblend 0 – 1.00 0.1 / 0.1 How much of the original pixel is mixed back in; lower values keep less of the original.
Search width searchw 5, 7, 9 9 Size of the search window; smaller is faster but may look worse.
GPU ID device 0 – 255 255 GPU to use; 255 takes the first one found.

Example

Default settings on a 10-bit YUV 4:2:0 source (640×356, padded to mod 8):

clip = core.std.AddBorders(clip=clip, left=0, right=0, top=2, bottom=2) # add borders to achieve mod 8 (vsDGDenoise) - 640x360
# adjusting color space from YUV420P10 to YUV444P16 for vsDGDenoise
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)
# denoising using DGDenoise
clip = core.dgdenoise.DGDenoise(clip)
clip = core.std.Crop(clip=clip, left=0, right=0, top=2, bottom=2) # removing added borders from mod requirement (vsDGDenoise) -  640x356

How Hybrid calls it

  • DGDenoise takes 8-bit YUV 4:2:0 and 16-bit YUV 4:2:0 or 4:4:4; other formats are converted first.
  • Width and height must be divisible by 8; Hybrid adds borders when needed and removes them afterwards.
  • Values are only written when they differ from the defaults.
  • DGDenoise also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).

Background

DGDecNV documentation

The documentation that comes with the plugin strongly advises to denoise progressive frames only: interlaced material should be deinterlaced first, or the fields separated, denoised and woven back. The AviSynth version of DGDenoise also has a temporal mode with a motion threshold, which the VapourSynth version does not offer.

Sources

  • DGDenoise documentation (DGDenoise.html, part of DGDecNV)
  • Hybrid's tooltips