Skip to main content

COlour Operations Library for Processing Images

Project description

COOLPI

Description

COlour Operations Library for Processing Images (COOLPI) is an open-source toolbox programmed in Python for the treatment of colorimetric and spectral data. It includes classes, methods and functions developed and tested following the colorimetric standards published by the Commission Internationale de l'Éclairage (CIE, 2018).

The COOLPI package has been developed as part of the INDIGO project (IN-ventory and DI-sseminate G-raffiti along the d-O-naukanal) carried out by the Ludwig Boltzmann Institute for Archaeological Prospection and Virtual Archaeology in close collaboration with the GEO Department of TU Wien University.

The achievement of colour-accurate digital images is one of the primary research topics within the INDIGO project. Therefore, the COOLPI package also includes specific procedures for digital image processing and colour correction, particularly from images in RAW format.

Although the COOLPI package has been designed mainly for Cultural Heritage documentation applications based on digital imaging techniques, we are confident that its applicability can be extended to any discipline where colour accurate registration is required.

Modules

The COOLPI package is structured in the following oriented objected programming (OOP) modules:

  • Auxiliary: scripts with common operations for the COOLPI modules.
  • Colour: CIE, Colour and Spectral classes, with the basic colorimetric tools based on CIE formulation or additional published standards.
  • Image: ColourChecker and Image classes with the methods and functions for image processing.

The COOLPI auxilary module integrates functions that are used in the classes to carry out operations related to data loading and checking, creation and display of colorimetric and spectral graphs, and so on. It also includes the errors module, with the exceptions associated with each of the classes.

The recommended way to import the auxiliary modules is as follows:

>>> import coolpi.auxiliary.common_operations as cop
>>> import coolpi.auxiliary.load_data as ld
>>> import coolpi.auxiliary.export_data as ed
>>> import coolpi.auxiliary.plot as cpt

The auxiliary functions are designed to support the COOLPI package classes, they are not intended to be used independently by the user. However, they can be imported and used directly from Python if desired.

The colour module is one of the pillars of the COOLPI package, and is based on the colorimetric recommendations of the CIE (CIE, 2018). This module includes the CIE, Colour and Spectral main classes, and the implementation of the basic tools for the colorimetric and spectral treatment of the data.

The acquisition of colour-accurate digital images is one of the primary research topics in the international graffiti project INDIGO. Thus, the image module implemented in COOLPI provides the ColourChecker and Image classes, with the methods and functions necessary to process and obtain accurate-colour data from digital images, especially in RAW format.

In addition, a graphical interface GUI has been designed that integrates the main functionalities of the COOLPI package, especially designed for non-programmer users.

Installation

The COOLPI package can be installed directly from PyPi running the pip command on the system shell:

>>> pip install coolpi

The COOLPI package is based on Python 3.9. It is therefore recommended not to work with lower python versions, as the correct functioning of the library is not guaranteed.

Dependencies

For the proper operation of COOLPI, the following packages must be installed together:

The dependencies should have been installed automatically along with COOLPI. Please check that everything is correct.

Notebooks

A series of interactive Jupyter Notebooks have been prepared. They include practical examples to help users become familiar with the classes, methods and functions implemented in the COOLPI package.

Users can find the interative Jupyter Notebooks in the notebook folder of the COOLPI repository on GitHub.

In order to use the interactive notebooks, JupyterLab, or its extension in the code editor used, must be installed beforehand.

GUI

A graphical user interface has been designed together with the COOLPI package. The aim is to help especially non-programmers to use in an easy and practical way the functionalities implemented in the COOLPI package. Efforts have been made to develop the graphical interface in a way that makes it intuitive and friendly to use.

To run the COOLPI-GUI:

>>> from coolpi.gui.app import GUI
>>> gui = GUI()
>>> gui.run()

The COOLPI-GUI includes the following tools:

  • CSC: Colour Space Conversion
  • CDE: Colour $\Delta E$
  • CPT: Colour Plot Tool
  • SPC: Spectral Colour
  • SPD: Illuminant SPD
  • CCI: ColourChecker Inspector
  • RCIP: RAW Colour Image Processing

Project links

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

coolpi-0.1.19.tar.gz (3.1 MB view hashes)

Uploaded Source

Built Distribution

coolpi-0.1.19-py3-none-any.whl (3.2 MB view hashes)

Uploaded Python 3

Supported by

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