{
 "id": "atrous-wavelet-filter",
 "title": "Edge-avoiding a-trous wavelet filter",
 "aliases": [
  "a-trous filter",
  "edge-avoiding wavelet",
  "A-trous denoiser",
  "à-trous"
 ],
 "domain": "post",
 "subdomain": "edge-aware filtering",
 "stage": "post",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "cuda",
  "mobile-gpu"
 ],
 "year_introduced": 2010,
 "inputs": [
  "radiance",
  "gbuffer",
  "normals",
  "depth"
 ],
 "outputs": [
  "radiance"
 ],
 "style": "photoreal",
 "dynamic": "both",
 "summary": "A cascade of small sparse blur kernels whose taps double in spacing each pass, weighted by normal, depth and colour similarity, so large smooth areas blur broadly while edges survive.",
 "how_it_works": "The à-trous ('with holes') scheme approximates a wide blur using a fixed small kernel, typically the 5x5 cubic B-spline [1 4 6 4 1]/16 outer product. In iteration i the same kernel is applied with taps spaced 2^i pixels apart (inserting 'holes'), so five or six iterations cover a radius of tens of pixels at constant cost per pass. Each tap weight is multiplied by edge-stopping terms from guide buffers: a Gaussian-like function of the difference in colour or luminance, one of normal similarity (typically a clamped dot product raised to a power), and one of depth or position difference. After normalising by the weight sum, the result is used as input to the next pass. Iterating this is a wavelet-like decomposition without actually storing detail coefficients, and it maps well to compute or fragment shaders with ping-pong textures.",
 "when_to_use": "Choose it as the spatial stage of a hand-built denoiser, for filtering noisy lighting such as ray-traced AO, shadows or GI with a G-buffer guide, or as a cheap large-radius edge-aware smoother for SSAO. It is the building block inside `svgf`, and the spatial half of `nvidia-nrd-relax-reblur`. Prefer `svgf` when you also need temporal accumulation and variance guidance, `open-image-denoise` for final offline frames, and a bilateral or `bilateral-normal-integration`-style filter only when a single small radius suffices.",
 "cost": {
  "class": "cheap",
  "notes": "Each iteration is one 25-tap (or 9-tap) full-screen pass; five iterations are typically a small fraction of a frame at 1080p, with bandwidth the main cost."
 },
 "failure_modes": [
  "Blotchy, low-frequency residual noise when the guide buffers do not capture lighting discontinuities",
  "Grid or ringing patterns from sparse taps at large steps on high-frequency input",
  "Light bleeding across thin features whose depth and normal are similar to their surroundings",
  "Over-smoothed texture detail when applied to final colour instead of demodulated irradiance",
  "Shadow and contact detail lost at big steps unless the colour/luminance term gates the weights"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://jo.dreggn.org/home/2010_atrous.pdf",
   "type": "web",
   "title": "Edge-Avoiding A-Trous Wavelet Transform for fast Global Illumination Filtering",
   "authors": [
    "Dammertz",
    "Sewtz",
    "Hanika",
    "Lensch"
   ],
   "year": null,
   "venue": "jo.dreggn.org",
   "url": "https://jo.dreggn.org/home/2010_atrous.pdf",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261110031149/https://jo.dreggn.org/home/2010_atrous.pdf",
     "timestamp": "20261110031149"
    },
    "page_title": null,
    "host": "jo.dreggn.org",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://jo.dreggn.org/home/2010_atrous.pdf → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://jo.dreggn.org/home/2010_atrous.pdf → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "dammertzedge"
  },
  {
   "role": "implementation",
   "key": "gh:nvidiagameworks/falcor",
   "type": "code",
   "title": "NVIDIAGameWorks/Falcor",
   "description": "Real-Time Rendering Framework",
   "authors": [
    "NVIDIAGameWorks"
   ],
   "year": 2017,
   "venue": "GitHub",
   "url": "https://github.com/NVIDIAGameWorks/Falcor",
   "ids": {
    "repo": "NVIDIAGameWorks/Falcor"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 3285,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-09-21T15:12:00Z",
    "language": "C++",
    "homepage": "https://developer.nvidia.com/falcor",
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIAGameWorks/Falcor",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nvidiagameworks2017nvidiagameworks"
  }
 ],
 "presets": [
  {
   "id": "atrous-three-pass-guided-denoise",
   "title": "3-pass edge-avoiding a-trous denoise (noisy | filtered)",
   "runtime": "glsl-fragment",
   "params": {
    "steps": [
     1,
     2,
     4
    ],
    "kernel": "3x3 [1 2 1]/4",
    "sigma_color": 0.15
   },
   "code": "// GLSL ES 3.0, Shadertoy-style. Left half: noisy image. Right half: three edge-avoiding a-trous passes (steps 1,2,4)\n// evaluated analytically by nesting the filter, guided by the clean \"albedo/normal\" image.\nconst float SIGMA_C = 0.15;   // colour edge-stopping strength on the guide\nconst float SIGMA_N = 0.9;    // noise amplitude\n\nvec3 clean(vec2 p) {\n  vec2 q = p / iResolution.y;\n  vec3 bg = mix(vec3(0.15, 0.25, 0.45), vec3(0.85, 0.75, 0.55), q.y);\n  float d1 = length(q - vec2(0.45, 0.5)) - 0.22;\n  float d2 = length(q - vec2(1.0, 0.45)) - 0.18;\n  vec3 col = bg;\n  col = mix(vec3(0.9, 0.3, 0.2), col, smoothstep(-0.003, 0.003, d1));\n  col = mix(vec3(0.2, 0.8, 0.4), col, smoothstep(-0.003, 0.003, d2));\n  return col;\n}\nfloat hash12(vec2 p) {\n  vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n  p3 += dot(p3, p3.yzx + 33.33);\n  return fract((p3.x + p3.y) * p3.z);\n}\nvec3 noisy(vec2 p) {\n  vec2 c = floor(p) + 0.5;\n  float n = hash12(c) - 0.5;\n  float m = hash12(c + 17.0) - 0.5;\n  return clean(c) * (1.0 + SIGMA_N * n) + vec3(0.0, 0.0, 0.0) * m;\n}\nfloat kern(int i) { return i == 0 ? 0.5 : 0.25; }\nfloat edgeW(vec2 p, vec2 q) {\n  vec3 d = clean(p) - clean(q);\n  return exp(-dot(d, d) / (SIGMA_C * SIGMA_C));\n}\nvec3 level1(vec2 p, float s) {\n  vec3 sum = vec3(0.0); float ws = 0.0;\n  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {\n    vec2 q = p + vec2(float(x), float(y)) * s;\n    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);\n    sum += w * noisy(q); ws += w;\n  }\n  return sum / ws;\n}\nvec3 level2(vec2 p, float s) {\n  vec3 sum = vec3(0.0); float ws = 0.0;\n  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {\n    vec2 q = p + vec2(float(x), float(y)) * s * 2.0;\n    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);\n    sum += w * level1(q, s); ws += w;\n  }\n  return sum / ws;\n}\nvec3 level3(vec2 p, float s) {\n  vec3 sum = vec3(0.0); float ws = 0.0;\n  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {\n    vec2 q = p + vec2(float(x), float(y)) * s * 4.0;\n    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);\n    sum += w * level2(q, s); ws += w;\n  }\n  return sum / ws;\n}\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = fragCoord / iResolution.xy;\n  vec3 col = (uv.x < 0.5) ? noisy(fragCoord) : level3(fragCoord, 1.0);\n  if (abs(uv.x - 0.5) < 0.003) col = vec3(1.0);\n  fragColor = vec4(col, 1.0);\n}\n",
   "basis": "0",
   "license_note": "written for this index; algorithm follows the cited paper, analytic nesting used so the demo needs no buffers",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "atrous-wavelet-filter",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.4984,
      "std": 0.1825,
      "unique_colors": 612
     },
     "image": "/specimens/atrous-three-pass-guided-denoise.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "svgf",
  "nvidia-nrd-relax-reblur",
  "open-image-denoise",
  "ssao",
  "bilateral-normal-integration"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "svgf",
   "why": "SVGF drives the à-trous cascade with variance from temporal moments; the filter is the spatial half."
  },
  {
   "id": "ssao",
   "why": "Noisy per-pixel-rotated AO is cleaned by an edge-aware à-trous pass using depth and normals."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/post/atrous-wavelet-filter.json"
 },
 "solves": [
  "need a cheap large radius blur that keeps object edges",
  "noisy ambient occlusion needs an edge aware cleanup",
  "build my own denoiser from normals and depth guides",
  "bilateral blur too slow for big radius",
  "blur noisy lighting without bleeding across silhouettes"
 ],
 "authority": "Dammertz et al.",
 "url": "https://texelatlas.vercel.app/t/atrous-wavelet-filter/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 771.81,
  "tier": "extreme",
  "p50_ms": 25.3924,
  "p95_ms": 25.6691,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 20,
  "preset_id": "atrous-three-pass-guided-denoise",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 585.06,
   "tier": "extreme",
   "p50_ms": 9.3025,
   "p95_ms": 9.41,
   "speedup_x": 2.73,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 571.73,
   "tier": "extreme",
   "p50_ms": 16.4659,
   "p95_ms": 16.61,
   "speedup_x": 1.54,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}