A
A
Andrew2013-02-09 22:10:50
Image processing
Andrew, 2013-02-09 22:10:50

How to properly equalize the brightness of an image?

There is an image that is heavily overexposed in one area and extremely underexposed in another. I would like to get an output image that is evenly lit (even in grayscale), so that dim pixels are present along with bright ones. I looked in the direction of retinex and gamma correction, but in the case of dimly lit images they give poor results, and retinex is also quite demanding on computing resources. Maybe someone can suggest where else to look. Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
demimurych, 2013-02-11
@xaoc80

Look here
www.fmwconcepts.com/imagemagick/
scripts like tonemap

K
kedobear, 2013-02-09
@kedobear

Try the -equalize or -normalize options in imagemagick.

[
[email protected]><e, 2013-02-09
@barmaley_exe

Convert to a representation with a selected brightness component (HSB, for example), to equalize its histogram . (perhaps this will be identical to the advice above), and then back to RGB.

D
Dragonizer, 2013-02-10
@Dragonizer

If you need to illuminate a dark photographic image with bright spots, then there are three simple methods:
www.tankedup-imaging.com/no_flash_choice.html
For photographs of documents, when you need to get a black and white image, this option is better
: /3549/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question