Retinex
Retinex algorithms for image enhancement. They are specially useful to process images with uneven illumination.
Still a work in progress. Next, I want to implement other techniques for color correction.
Installation
You may use pip to install retinex.
pip install retinex
Usage
Here is an example of how to use MSRCR (multi-scale retinex with color correction).
import skimage
from retinex import msrcr
img_original = skimage.io.imread("leaves.jpg")
img_msrcr = msrcr(img, sigmas=(25., 50., 100.,))
Check the examples folder for some more samples:
Image credits
Images in the sample_images folder were made freely available online by talented photographers. My big thanks to them:
- leaves.jpg: Photo by Rodion Kutsaiev on Unsplash
- man.jpg: Photo by Michael McAuliffe on Unsplash
- park.jpg: Photo by Oleg Lukin on Unsplash
- street.jpg: Photo by Ron Douglas on flickr
References
- Rahman, Z. U., Jobson, D. J., & Woodell, G. A. (2004). Retinex processing for automatic image enhancement. Journal of Electronic imaging, 13(1), 100-110.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Release files for retinex 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| retinex-0.0.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| retinex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / retinex-0.0.1.tar.gz
| Download URL | retinex-0.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3401f68f35efeeaf789e2b805c42488c6f73cafde7de9425c6d307f7d5ec5842
|
|
BLAKE2b-256 checksum How to use checksums |
15a634f45c1735cc16082ec89603c3d929a155a71a18110bcb2bf7f846d6ec1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / retinex-0.0.1-py3-none-any.whl
| Download URL | retinex-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbb3632504f5b51acfd9b04678eda099d8405f521d155e26f63a1667baea86d7
|
|
BLAKE2b-256 checksum How to use checksums |
a92e1a6a5e5b74020a516a49ad0222ca7c9ceb3287d419834a81e1d92bb13d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|