{
 "id": "open-image-denoise",
 "title": "Intel Open Image Denoise (OIDN)",
 "aliases": [
  "OIDN"
 ],
 "domain": "post",
 "subdomain": "learned denoising",
 "stage": "post",
 "realtime": "interactive",
 "platforms": [
  "cpu",
  "cuda",
  "desktop-gpu",
  "blender",
  "houdini",
  "python"
 ],
 "year_introduced": 2019,
 "inputs": [
  "hdr-image",
  "gbuffer",
  "normals"
 ],
 "outputs": [
  "hdr-image"
 ],
 "style": "photoreal",
 "dynamic": "both",
 "summary": "A library of neural-network denoisers for Monte Carlo path-traced images, taking a noisy colour image and optional albedo and normal feature images, with CPU and GPU back ends.",
 "how_it_works": "OIDN wraps U-Net style convolutional networks trained on pairs of noisy and high-sample-count renders. The caller creates a filter (usually the generic ray-tracing filter, `RT`), binds the colour buffer and, to preserve detail, auxiliary albedo and normal images, and picks high-dynamic-range or LDR mode. The network works per frame without temporal history, which keeps it stable for stills and animation without extra buffers. Auxiliary images are expected to be noise-free, so renderers supply first-hit or prefiltered features; a separate prefilter filter cleans noisy auxiliaries. Weights are shipped as built-in model files; users can load custom-trained weights. Inference runs on CPU vector units or GPUs via device back ends (SYCL, CUDA, HIP, Metal), and large images are tiled to bound memory. A cleanAux flag and quality setting trade speed for fidelity.",
 "when_to_use": "Choose it for offline and progressive previews from a path tracer (it is the denoiser behind several DCC renderers), where per-frame quality matters more than millisecond budgets. Prefer `svgf` or `nvidia-nrd-relax-reblur` for game-frame real-time budgets with temporal reuse, and `restir-pt` or `path-guiding` when you can reduce noise at the source instead of filtering it.",
 "cost": {
  "class": "offline",
  "notes": "Seconds per frame on CPU at high resolution, fast enough on a GPU for interactive viewport updates; scales with pixel count and chosen quality."
 },
 "failure_modes": [
  "Over-smoothing of fine texture and thin geometry when albedo and normal images are missing or noisy",
  "Temporal flicker across animation frames, since each frame is denoised independently",
  "Splotchy low-frequency artifacts at very low sample counts where the input carries fireflies",
  "Colour shifts if the HDR/LDR mode or colour space does not match the input encoding",
  "Textured emissive or glossy detail can be mistaken for noise and erased"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "gh:renderkit/oidn",
   "type": "code",
   "title": "RenderKit/oidn",
   "description": "Intel® Open Image Denoise library",
   "authors": [
    "RenderKit"
   ],
   "year": 2019,
   "venue": "GitHub",
   "url": "https://github.com/RenderKit/oidn",
   "ids": {
    "repo": "RenderKit/oidn"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 2132,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-05T15:47:56Z",
    "language": "C++",
    "homepage": "https://www.openimagedenoise.org/",
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/RenderKit/oidn",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "renderkit2019renderkit"
  },
  {
   "role": "tutorial",
   "key": "url:https://www.openimagedenoise.org/documentation.html",
   "type": "tutorial",
   "title": "Open Image Denoise documentation",
   "authors": [
    "Intel"
   ],
   "year": null,
   "venue": "openimagedenoise.org",
   "url": "https://www.openimagedenoise.org/documentation.html",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261011234745/https://www.openimagedenoise.org/documentation.html",
     "timestamp": "20261011234745"
    },
    "page_title": "Intel® Open Image Denoise",
    "host": "openimagedenoise.org",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://www.openimagedenoise.org/documentation.html → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://www.openimagedenoise.org/documentation.html → 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://www.openimagedenoise.org/documentation.html → 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": 0.75,
   "__bib": "intelopen"
  }
 ],
 "presets": [
  {
   "id": "open-image-denoise-live",
   "title": "Intel Open Image Denoise (OIDN) — noisy path-traced render (left) vs albedo+normal-guided multi-scale denoising (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_SPP_NOISE": 0.85,
    "P_AUX_GUIDE": 0.9,
    "P_DETAIL_KEEP": 0.8,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_SPP_NOISE = 0.85; // P Path-Trace Noise [0.15, 1.5, 0.05]\nconst float P_AUX_GUIDE = 0.90; // P Albedo+Normal Guide [0.0, 1.0, 0.05]\nconst float P_DETAIL_KEEP = 0.80; // P Texture Preservation [0.0, 1.0, 0.05]\nconst float P_SPLIT = 0.48; // P Noisy / OIDN [0.0, 1.0, 0.02]\n\nfloat hash21(vec2 p) {\n  p = fract(p * vec2(127.1, 311.7));\n  p += dot(p, p + 34.5);\n  return fract(p.x * p.y);\n}\n\n// High-detail textured wood/stone/ceramic interior scene demonstrating OIDN auxiliary albedo+normal preservation\nvoid evalOIDNScene(vec2 uv, float t, out vec3 irr, out vec3 alb, out vec3 nrm, out float dep) {\n  vec3 ro = vec3(0.0, 0.30, 2.25);\n  vec3 rd = normalize(vec3(uv.x, uv.y - 0.08, -1.48));\n  vec3 lightDir = normalize(vec3(0.55 * cos(t * 0.45), 0.78, 0.45));\n\n  dep = 10.0;\n  alb = vec3(0.18, 0.22, 0.28);\n  nrm = vec3(0.0, 0.0, 1.0);\n  irr = vec3(0.35, 0.45, 0.65);\n\n  // Textured wood plank floor\n  if (rd.y < -0.005) {\n    float tf = (-0.50 - ro.y) / rd.y;\n    if (tf > 0.05 && tf < dep) {\n      dep = tf;\n      vec3 hp = ro + rd * tf;\n      nrm = vec3(0.0, 1.0, 0.0);\n      float grain = 0.5 + 0.5 * sin(hp.x * 24.0 + sin(hp.z * 6.0) * 1.4);\n      float plank = step(0.04, fract(hp.z * 2.2));\n      alb = mix(vec3(0.28, 0.16, 0.09), vec3(0.58, 0.36, 0.20), grain) * (0.45 + 0.55 * plank);\n      float sh1 = smoothstep(0.22, 0.58, length(hp.xz - vec2(-0.24, -0.08)));\n      float sh2 = smoothstep(0.18, 0.46, length(hp.xz - vec2(0.42, 0.18)));\n      irr = vec3(1.25, 1.12, 0.94) * (0.25 + 0.85 * sh1 * sh2) + vec3(0.22, 0.30, 0.42);\n    }\n  }\n\n  // Sculpted striped marble hero sphere\n  vec3 sc1 = vec3(-0.20, -0.10, -0.05);\n  vec3 oc1 = ro - sc1;\n  float b1 = dot(oc1, rd), d1 = b1 * b1 - (dot(oc1, oc1) - 0.40 * 0.40);\n  if (d1 > 0.0) {\n    float ts = -b1 - sqrt(d1);\n    if (ts > 0.05 && ts < dep) {\n      dep = ts;\n      vec3 hp = ro + rd * ts;\n      nrm = normalize(hp - sc1);\n      // High-frequency marble veins (must survive denoising crisp via auxiliary albedo buffer!)\n      float vein = smoothstep(0.65, 0.92, abs(sin((hp.x * 16.0 + hp.y * 12.0) + 2.2 * sin(hp.z * 9.0))));\n      alb = mix(vec3(0.88, 0.86, 0.82), vec3(0.16, 0.32, 0.46), vein);\n      float ndl = max(dot(nrm, lightDir), 0.0);\n      irr = vec3(1.38, 1.24, 1.06) * ndl + vec3(0.24, 0.32, 0.44) * (0.5 + 0.5 * nrm.y) + vec3(0.32, 0.20, 0.12) * max(-nrm.y, 0.0);\n    }\n  }\n\n  // Terracotta geometric cube/vase on right\n  vec3 sc2 = vec3(0.42, -0.22, 0.18);\n  vec3 oc2 = ro - sc2;\n  float b2 = dot(oc2, rd), d2 = b2 * b2 - (dot(oc2, oc2) - 0.28 * 0.28);\n  if (d2 > 0.0) {\n    float ts = -b2 - sqrt(d2);\n    if (ts > 0.05 && ts < dep) {\n      dep = ts;\n      vec3 hp = ro + rd * ts;\n      nrm = normalize(hp - sc2);\n      float ring = step(0.5, fract(hp.y * 22.0));\n      alb = mix(vec3(0.84, 0.38, 0.22), vec3(0.94, 0.78, 0.46), ring * 0.55);\n      float ndl = max(dot(nrm, lightDir), 0.0);\n      irr = vec3(1.35, 1.22, 1.05) * ndl + vec3(0.22, 0.30, 0.42) * (0.5 + 0.5 * nrm.y);\n    }\n  }\n}\n\nvec3 noisyIrradiance(vec2 fc, float noiseAmp, float t, out vec3 alb, out vec3 nrm, out float dep) {\n  vec2 uv = (fc - 0.5 * iResolution.xy) / iResolution.y;\n  vec3 irr;\n  evalOIDNScene(uv, t, irr, alb, nrm, dep);\n  vec2 p = floor(fc);\n  float fr = floor(t * 8.0) * 0.23;\n  vec3 rnd = vec3(\n    hash21(p + vec2(fr * 19.1, 7.3)),\n    hash21(p + vec2(43.7, fr * 23.9)),\n    hash21(p + vec2(fr * 61.3, 89.1))\n  ) - 0.5;\n  return max(irr + rnd * noiseAmp * (0.65 + 0.55 * irr), 0.0);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  float noiseAmp = clamp(P_SPP_NOISE, 0.05, 1.6);\n  float auxGuide = clamp(P_AUX_GUIDE, 0.0, 1.0);\n  float detailKeep = clamp(P_DETAIL_KEEP, 0.0, 1.0);\n\n  vec3 cAlb, cNrm;\n  float cDep;\n  vec3 cIrr = noisyIrradiance(fragCoord, noiseAmp, iTime, cAlb, cNrm, cDep);\n  vec3 col = cIrr * cAlb;\n\n  if (screenX >= split) {\n    // Right: OIDN-style multi-scale encoder-decoder proxy using auxiliary albedo & normal feature guidance\n    vec3 accIrr = vec3(0.0);\n    vec3 accCol = vec3(0.0);\n    float wSum = 0.0;\n    // Multi-scale tap strides (1px + 3px) capturing wide low-frequency illumination cleanly\n    for (int j = -2; j <= 2; j++) {\n      for (int i = -2; i <= 2; i++) {\n        vec2 off = vec2(float(i), float(j)) * 2.4;\n        vec3 qAlb, qNrm;\n        float qDep;\n        vec3 qIrr = noisyIrradiance(fragCoord + off, noiseAmp, iTime, qAlb, qNrm, qDep);\n        float wN = pow(max(dot(cNrm, qNrm), 0.0), mix(1.0, 18.0, auxGuide));\n        float wZ = exp(-abs(cDep - qDep) * mix(0.6, 5.5, auxGuide));\n        float wA = exp(-dot(cAlb - qAlb, cAlb - qAlb) * mix(0.5, 6.0, auxGuide));\n        float wS = exp(-dot(vec2(float(i), float(j)), vec2(float(i), float(j))) * 0.22);\n        float w = wN * wZ * wA * wS;\n        accIrr += qIrr * w;\n        accCol += (qIrr * qAlb) * w;\n        wSum += w;\n      }\n    }\n    vec3 smoothIrr = accIrr / max(wSum, 1e-4);\n    vec3 smoothCol = accCol / max(wSum, 1e-4);\n    // Re-modulate denoised irradiance with crisp auxiliary albedo (OIDN detail preservation!)\n    col = mix(smoothCol, smoothIrr * cAlb, detailKeep);\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.98, 1.0), sep);\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "open-image-denoise",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:20.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.5141,
      "std": 0.211,
      "min": 0,
      "max": 0.951
     },
     "image": "/specimens/open-image-denoise-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "svgf",
  "nvidia-nrd-relax-reblur",
  "path-tracing",
  "path-guiding",
  "bidirectional-path-tracing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "path-tracing",
   "why": "A low-sample path-traced frame plus first-hit albedo and normal AOVs are the denoiser's inputs."
  }
 ],
 "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/open-image-denoise.json"
 },
 "solves": [
  "final path traced render has fireflies and grain",
  "need to clean up low sample count cycles-style renders",
  "noisy viewport preview should converge faster",
  "denoise a rendered frame using albedo and normal passes",
  "cpu only denoiser for offline path tracer output"
 ],
 "authority": "RenderKit, 2019",
 "url": "https://texelatlas.vercel.app/t/open-image-denoise/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 38.53,
  "tier": "heavy",
  "p50_ms": 1.2677,
  "p95_ms": 1.2942,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "open-image-denoise-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 35.43,
   "tier": "heavy",
   "p50_ms": 0.5634,
   "p95_ms": 0.5647,
   "speedup_x": 2.25,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 27.32,
   "tier": "heavy",
   "p50_ms": 0.7867,
   "p95_ms": 0.7982,
   "speedup_x": 1.61,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}