Skip to content

gui-miotto/retinex

Repository files navigation

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

About

retinex image enhancement algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages