Skip to content

RISE-Dependable-Transport-Systems/ColorCheckerAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorChecker Analysis

DOI

A Python-based application for performing DeltaE analysis on ColorChecker charts. This tool offers both automatic detection and manual selection of the ColorChecker pattern from an image, computes the DeltaE differences for each color patch, supports batch processing of images after pattern selection, and displays detailed visualizations.

Features

  • Image Loading: Browse and load images via an integrated file explorer.
  • File Filtering: Filter images in the file explorer using Python-style expressions.
  • ColorChecker Detection:
    • Auto-detection: Uses OpenCV's MCC detector to automatically find the ColorChecker pattern.
    • Manual Selection: Adjust or specify the ColorChecker vertices using a simple Tkinter interface.
  • DeltaE Analysis: Computes the DeltaE (CIE2000) differences between detected patches and a reference.
  • Batch Processing: Perform DeltaE analysis on multiple images after selecting the pattern.
  • Visualization: Displays analysis results and histograms using matplotlib.
  • Plot Saving: Save generated plots with custom DPI and figure dimensions.
  • Logging: Real-time logging of analysis steps directly within the GUI.

Installation

Prerequisites

  • Python 3.x

Clone the Repository

git clone [email protected]:RISE-Dependable-Transport-Systems/ColorCheckerAnalysis.git
cd ColorCheckerAnalysis

Install the required packages via pip

pip install -r requirements.txt

Usage

Run the application with:

python src/colorchecker_analysis.py

How It Works

  1. Load an Image:
    Use the file explorer on the left to select an image containing a ColorChecker chart.

  2. File Filtering:
    The file explorer allows the filtering of files using Python-like expressions with tokens and logical operators such as "not example and sample".

  3. Detect the ColorChecker Pattern:

    • Click Auto detect to let the application attempt automatic pattern detection.
    • If detection fails or needs fine-tuning, click Manual selection and adjust the vertices manually.
  4. Compute DeltaE:
    Once the pattern is set, click Compute DeltaE to perform the analysis. Results and a histogram of the DeltaE values will be displayed on the analysis tab.

  5. Batch Processing:
    After selecting the pattern, optionally select multiple images (with the ColorChecker pattern assumed to be in the same pixel region) in the file explorer and click Compute DeltaE to perform the batch analysis using parallel threads.

  6. Save Your Plot:
    Right-click on any plot to open a context menu with the option to save your figure.

Contributing

Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests. When contributing, please follow the coding style and ensure that new features are well documented.

License

This project is licensed under the GPL-3.0 license.

Acknowledgments

  • colormath: For the color conversion and DeltaE calculation routines.
  • OpenCV: For powerful image processing capabilities.
  • matplotlib & Tkinter: For providing an interactive UI and visualization tools.

Contact

For questions or feedback, please open an issue in the GitHub repository.

Funded by

EU logo

This project has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement nº 101095835. The results reflect only the authors' view and the Agency is not responsible for any use that may be made of the information it contains.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages