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:
- Create plots and figures: matplotlib 3.5.2
- Scientific computing: numpy 1.22.4
- Computer vision: opencv-python 4.6.0.66
- Data Analysis: pandas 1.4.2
- Qt (GUI): pyside6 6.3.0
- RAW image processing: rawpy 0.17.1
- Scientific computing: scipy 1.8.1
- Statistical data visualization: seaborn 0.11.2
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.
- 01 CIE objects. (GitHub)
- 02a Colour objects. (GitHub)
- 02b CSC - Colour Space Conversion. (GitHub)
- 02c CSC - Data test (Ohta&Robertson 2005). (GitHub)
- 03a Spectral objects. (GitHub)
- 04a Colour-difference. (GitHub)
- 04b CIEDE2000 - Test data (Sharma et al., 2005). (GitHub)
- 05 ColourChecker objects.(GitHub)
- 06 Image objects. (GitHub)
- 07 ColourCheckerRGB Data Extraction from Images GitHub
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coolpi-0.1.19.tar.gz
.
File metadata
- Download URL: coolpi-0.1.19.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307c425bc9d0772a10edee7b71fa02a0d0d1a1e24a17ffd2bc86c3b044c37525 |
|
MD5 | 178ac8db91a57e84b7bf24e9fa6c514d |
|
BLAKE2b-256 | 1cca2fed4bece1b6b569c104c9abf595ee089eeebebf98bc2569b3e571854ac1 |
File details
Details for the file coolpi-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: coolpi-0.1.19-py3-none-any.whl
- Upload date:
- Size: 3.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6d94382dc61b48f255a30d35efa792c1d5e5749064a87cb631da555477283e |
|
MD5 | 0486b5e29f368e670054a8b9d3ca5f64 |
|
BLAKE2b-256 | 80a0fc31de76ce4993da58cd3a4422116a22ffb2dd55aa6330cf178d63d2740e |