GPU Demosaicing Algorithms and Image Quality

Updated:

Fastvideo GPU demosaicing converts Bayer CFA data to RGB on NVIDIA GPUs with a choice of quality levels — HQLI, L7, DFPD, and MG — reaching from about 36 dB (HQLI) to about 40.5 dB (MG) average PSNR on the Kodak data set. All of them run in real time on the GPU, so you can trade quality against speed without leaving the pipeline.

Looking for the software? Use the GPU Debayer application to convert Bayer to RGB, or add the CUDA Debayer Library to your own pipeline. This page explains the demosaicing algorithms behind them.

Detailed benchmark data. Measured results are published on our benchmark pages: Debayer benchmarks, all benchmarks.

That interpolation algorithm is called demosaicing and it's a must for any photo or video camera with CFA. Demosaicing is a transformation of a Raw Bayer image into the conventional 24/48-bit RGB format. Interpolation of nearby pixel colors is not a simple task and the simplest bayer pattern demosaicing algorithms like Nearest Neighbour or Bilinear give low quality results. To check image quality for demosaicing algorithms, people usually utilize Kodak data set to calculate PSNR or SSIM metrics.

Demosaicing is not only complicated algorithm to restore raw bayer data from image sensors, but also very slow. High quality algorithms like Adaptive Gradient Interpolation or Amaze take several seconds to process raw image from 20-MPix sensor on CPU. Multithreaded software on CPU still can't offer high performance demosaicing for advanced algorithms. Such a performance of video demosaicing software could be acceptable in some cases, but not for real-time processing in camera applications.

To solve the task of fast demosaicing for high quality algorithms, we've implemented highly optimized solutions for NVIDIA GPU. We've improved both quality and the performance significantly. Our raw image demosaicing software can do the following:

mosaic pattern for video demosaicing softwareWhat's unique in GPU Demosaicing Software

freeware demosaicing software app download

Fast GPU Demosaicing Software

Size: 50.0 MB
Publisher: Fastvideo
OS: Windows-10 (64-bit)
License: Freeware
NVIDIA GPU: Volta, Turing, Ampere, Ada

Demosaicing Software Specification

Which demosaicing algorithms and speeds does the GPU software offer?

More info about GPU Demosaic Software

GPU Demosaic is a tool to demonstrate the performance of parallel computations on GPU with CUDA technology. Parallel implementation of GPU demosaicing could be super fast even for very complicated color interpolation algorithms, much faster than real-time demosaicing.

GPU Demosaicing FAQ

What is demosaicking?

Demosaicking (also spelled demosaicing) is the reconstruction of a full-color RGB image from the raw single-channel data of a color-filter-array (CFA) sensor, most commonly a Bayer pattern. It is the same operation that camera applications call debayering.

What is CFA interpolation?

CFA interpolation (color filter array interpolation) is another name for demosaicing: each pixel of a Bayer sensor records only one color, and the two missing colors are interpolated from neighboring pixels to produce a full RGB image.

How is demosaicing quality measured?

Quality is measured as average PSNR against a reference image (here on the Kodak data set), together with visual inspection for zipper artifacts and false color along edges. Our algorithms range from about 36 dB (HQLI) to about 40.5 dB (MG).

Why do gradient-based algorithms beat simple bilinear demosaicing?

Bilinear interpolation ignores edges, so it produces zipper artifacts and false color. Gradient-based methods such as DFPD and MG interpolate along edges rather than across them, which sharply reduces those artifacts at the cost of more computation.

Roadmap for further improvements of GPU Demosaicing Software

Fyodor Serzhenko, Fastvideo

About the author

Fyodor Serzhenko, PhD, is the founder and CEO of Fastvideo. He earned his PhD at the Moscow Institute of Physics and Technology (MIPT) in 1993. Since 2009 he has led the development of Fastvideo’s GPU-accelerated image codecs and ISP modules, including the Fastvideo SDK. Connect on LinkedIn.

Why you can trust these results

Fastvideo has built GPU-accelerated image processing software since 2009. Our codecs comply with the standards they implement — JPEG (ITU-T T.81 / ISO IEC 10918) and JPEG2000 (ITU-T T.800 / ISO IEC 15444) — and our tools are open source on GitHub. Every performance figure we publish is reproducible: see our benchmark methodology, download the Fastvideo SDK benchmark report (PDF), and measure it on your own GPU.

Contact Form

This form collects your name and email. See our Privacy Policy for how we handle your personal data.