Efficient, High-Quality Bayer Demosaic Filtering on GPUs

Morgan McGuire
Williams College
Journal of Graphics, GPU, & Game Tools, Volume 13, Number 4 / 2008, p.1-16


   title={Efficient, high-quality bayer demosaic filtering on gpus},

   author={McGuire, M.},

   journal={Journal of Graphics, GPU, & Game Tools},






   publisher={AK Peters}


Download Download (PDF)   View View   Source Source   Source codes Source codes



This paper describes a series of optimizations for implementing the high-quality Malvar-He-Cutler Bayer demosaicing filter on a GPU in OpenGL. Applying this filter is the first step in most video-processing pipelines but is generally considered too slow for real time on a CPU. The optimized implementation contains 66% fewer ALU operations than a direct GPU implementation and can filter 40 simultaneous HD 1080p video streams at 30 fps (2728 Mpix/s) on current hardware. It is two to three times faster than a straightforward GPU implementation of the same algorithm on many GPUs. Most of the optimizations are applicable to other kinds of processors that support SIMD instructions, like CPUs and DSPs. Source code is available online.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2021 hgpu.org

All rights belong to the respective authors

Contact us: