Home▸Computational Photography▸Bayer Color Filter Array Demosaicing: Raw Mosaic to Full Color Image (2D)

Bayer Color Filter Array Demosaicing: Raw Mosaic to Full Color Image (2D)

The same shared demosaicing model in 2D: ideal scene, raw Bayer mosaic and reconstructed image side by side, with a row profile of the reconstructed red, green and blue values, PSNR and false-color error.

Computational Photography2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Bayer Color Filter Array Demosaicing: Raw Mosaic to Full Color Image (2D) ↗ Open standalone

See how a camera sensor that records only one color per pixel rebuilds a full color picture. Choose a test scene, bilinear or gradient-directed demosaicing, an optical low-pass blur and sensor noise, then watch the raw RGGB mosaic turn into an image with zipper fringes, false color and aliased stripes. A Blender-built camera, sensor and easels, with PSNR readouts and numerical checks built in.

⚙ Under the hood

The same shared demosaicing model in 2D: ideal scene, raw Bayer mosaic and reconstructed image side by side, with a row profile of the reconstructed red, green and blue values, PSNR and false-color error.

DemosaicingBayer FilterImage SensorAliasingComputational Photography

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)