Demosaicing quality check on your own images

Updated:

Before a demosaicing algorithm goes into a working pipeline it is worth seeing what it does to your own frames. This command-line tool converts raw Bayer data into full-colour RGB on the GPU and measures the result. It runs several demosaicing algorithms of different quality and speed on NVIDIA CUDA, measures PSNR/MSE against reference images and reports timing for every algorithm — so you can choose the right quality-vs-speed trade-off before building a production pipeline.

Why run demosaicing on the GPU

Demosaicing algorithms: quality and speed

All four Bayer patterns are supported (RGGB, BGGR, GBRG, GRBG). Image quality is measured on the Kodak data set; peak speed is GPU computation only for a 65 MPix, 16-bit image (no batch, no streaming) on an NVIDIA GeForce RTX 4090.

AlgorithmWindowAvg PSNR, KodakSSIMPeak speed, RTX 4090
HQLI — High Quality Linear Interpolation5×5~ 36 dB~ 0.965up to 69 GPix/s
L77×7~ 37.1 dB~ 0.971up to 62 GPix/s
DFPD — Directional Filtering and a Posteriori Decision11×11~ 39 dB~ 0.978up to 48 GPix/s
MG — Multiple Gradients (highest quality)23×23~ 40.5 dB—up to 20 GPix/s

Input, output and limits

How it fits the Fastvideo ecosystem

These demosaicing algorithms are the same ones used inside the Fast CinemaDNG Processor and the Fastvideo SDK, where debayer is a single stage of a full GPU pipeline — dark-frame subtraction, flat-field correction, white balance, denoising, colour correction, tone mapping, resizing, sharpening and JPEG/JPEG2000/H.264 encoding. The standalone debayer application is a convenient way to evaluate demosaicing quality and speed before committing to a heavier service.

Roadmap

Related pages

Contact Form

This form collects your name and email. Check out our Privacy Policy on how we protect and manage your personal data.