Skip to main content

A package providing demosaicing functions for Bayer and polarisation filter patterns.

Project description

Demosaic GitHub top language GitHub license GitHub last-commit PyPI Anaconda

A package with functions that help demosaicing images with polarisation and Bayer-RGB or mono filter arrays. It includes implementations of different algorithms, such as:

  • Bilinear interpolation
  • Malvar interpolation (Malvar et al., 2024)
  • Fourier interpolation (Hagen et al., 2024)

It also contains a module for combining images with different exposures into a single HDR image.

References

  1. Malvar, H. S., He, L.-W. & Cutler, R. High-Quality Linear Interpolation for Demosaicing of Bayer-Patterned Color Images. 2004 IEEE Int. Conf. Acoust., Speech, Signal Process. 3, III-485-III–488 (2004).
  2. Hagen, N., Stockmans, T., Otani, Y. & Buranasiri, P. Fourier-domain filtering analysis for color-polarization camera demosaicking. Appl. Opt. 63, 2314 (2024).

Installation

You can easily install the package by using pip as:

pip install git+https://github.com/evgkanias/demosaic.git

Alternatively you need to clone the GitHub repository, navigate to the main directory of the project, install the dependencies and finally the package itself. Here is an example code that installs the package:

  1. Clone this repo.
mkdir ~/src
cd ~/src
git clone https://github.com/evgkanias/demosaic.git
cd sky
  1. Install the required libraries.
    1. using pip :

      pip install -r requirements.txt
      
    2. using conda :

      conda env create -f environment.yml
      conda activate demosaic-env
      
  2. Install the package.
    1. using pip :
      pip install .
      
    2. using conda :
      conda install .
      

Note that the pip project might be needed for the above installation.

Report an issue

If you have any issues installing or using the package, you can report it here.

Author

The code is written by Evripidis Gkanias.

Copyright

Copyright © 2026, Evripidis Gkanias; Lund Vision Group; Lund University.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demosaic-1.1.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demosaic-1.1.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file demosaic-1.1.0.tar.gz.

File metadata

  • Download URL: demosaic-1.1.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for demosaic-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e8fc9261ba02415ebd70e5aea3c21858c551d609d472a37fcfd6e843b55b3e3e
MD5 0b76170e00da84c82d28ed609db4a820
BLAKE2b-256 eaad55b66f805955a79c7e5c7315086597f3239bcbac31c49414e3d90f914ec0

See more details on using hashes here.

File details

Details for the file demosaic-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: demosaic-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for demosaic-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf3bb1e00ec6322392427ac32c5b6cfcf8502f20248b916f31d68d855c410aa3
MD5 bde7367174158c74003888d59b3ab6f0
BLAKE2b-256 078fb2fd08ef470ae1d46ead4403432e2c40c2b75ba06fc7705d1e8b8d8001dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page