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.3.tar.gz (31.3 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.3-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: demosaic-1.1.3.tar.gz
  • Upload date:
  • Size: 31.3 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.3.tar.gz
Algorithm Hash digest
SHA256 e4c299e84f30bbfdac620ef154a296166215186fa4f798706986123cc7f3495f
MD5 1e62954252268573f1ba2d3835b8090c
BLAKE2b-256 d444e4d4380f897ba0e0f3dd5faa369d86de409514d4d261b1a4b0c25ef49770

See more details on using hashes here.

File details

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

File metadata

  • Download URL: demosaic-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 31.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1970fd72e77ce048496a47c367f5d37e31b1b35c5bc8d9b6dd9a3b50111a64d5
MD5 f66829aff94b0855996fdce866e3f9ee
BLAKE2b-256 1038056b6d89f18d638f438407ed0e2530622802a21a7da7bd852b3dd73c40ba

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