Skip to main content

Retinex algorithms for image enhancement

Project description

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:

References

  1. 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

MIT

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

retinex-0.0.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

retinex-0.0.1-py3-none-any.whl (4.4 kB 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