Image processing based on CIELAB color space.
Project description
🌈 cie-utils
Advanced image processing in Python using the CIELAB color space.
cie-utils is a Python library for image preprocessing and color analysis using the perceptually uniform CIELAB color space.
✨ Features
✅ RGB ➡️ LAB / Lch conversion
✅ CLAHE, PCA, false color filters
✅ Background removal via pixel std deviation
✅ Cluster-based segmentation: KMeans, GaussianMixture, Agglomerative
✅ Histogram, PDF, and scatter plot visualization
✅ CSV export of processed image stats
✅ Clean and modular structure for reuse
📦 Installation
From PyPI
pip install cie-utils
From GitHub
pip install git+https://github.com/jarh1992/cie-utils.git
From local source (for development)
# Using Poetry (recommended for development)
poetry install
# Or using pip
pip install .
🧪 Example Usage
from cie-utils import normalize_img, rgb2lab
lab_img = rgb2lab(normalize_img(img, ref_img))
🧰 Development & Code Style
This project uses:
- 🖤
blackfor code formatting - 🔠
isortfor import sorting - 🧼
flake8for linting - ✅
pytestfor testing - 🧪
pre-commithooks enabled in.pre-commit-config.yaml
To install dev dependencies:
pip install -e .[dev]
pre-commit install
📚 Documentation
Documentation is automatically generated with Sphinx and hosted via GitHub Pages at:
👉 https://jarh1992.github.io/cie-utils/
📝 License
MIT License. See LICENSE for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cie_utils-0.2.0.tar.gz.
File metadata
- Download URL: cie_utils-0.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c02e58667ed2251bd0a0edfb19ade3dc68a8d47066fdae004e6f54c238392d76
|
|
| MD5 |
798c3710c2c4835a0969785a549b6693
|
|
| BLAKE2b-256 |
598114c4a0f8cef36987cb9e82ef6a73bf81f8941ed5fc045817ed2c5f2c5469
|
File details
Details for the file cie_utils-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cie_utils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9028138a6c4215a31c5abad3a57425a40ba47173eeea425c3224c1757b823dd
|
|
| MD5 |
1873149303ad0a153153333cbae44c02
|
|
| BLAKE2b-256 |
9db683cc61b0eda448190d44d750d722463b78bca6c2c5ae47b83fd0dfbb09b4
|