Colour - Demosaicing

A Python package implementing various CFA (Colour Filter Array) demosaicing algorithms and related utilities.

It is open source and freely available under the New BSD License terms.


The following CFA (Colour Filter Array) demosaicing algorithms are implemented:

  • Bilinear
  • Malvar (2004)
  • DDFAPD - Menon (2007)


Because of their size, the resources dependencies needed to run the various examples and unit tests are not provided within the Pypi package. They are separately available as Git Submodules when cloning the repository.

Primary Dependencies

Colour - Demosaicing requires various dependencies in order to run:


Once the dependencies satisfied, Colour - Demosaicing can be installed from the Python Package Index by issuing this command in a shell:

pip install colour-demosaicing

The tests suite dependencies are installed as follows:

pip install 'colour-demosaicing[tests]'

The documentation building dependencies are installed as follows:

pip install 'colour-demosaicing[docs]'



The main reference for Colour - Demosaicing is the complete Sphinx API Reference:


Various usage examples are available from the examples directory.


If you would like to contribute to Colour - Demosaicing, please refer to the following Contributing guide for Colour.


The bibliography is available in the repository in either BibTeX format or reStructuredText.


Colour - Demosaicing by Colour Developers - 2015
Copyright © 2015 – Colour Developers –
This software is released under terms of New BSD License: