A
A
AlexanderAstafiev2014-05-11 15:27:55
ImageMagick
AlexanderAstafiev, 2014-05-11 15:27:55

Accurate image normalization in ImageMagick

I have a lot of photos, the logarithmic histogram of one of which looks like this:
dbc461ceba02486680b8981589953e79.png
, on the right at the very end you can see that there is no information in the image (that is, the shadow slider can be freely moved to position 245). How to do it automatically in ImageMagick? With the -normalize option, the photos are normalized too much, the sky becomes completely white.
Sorry if the picture breaks the page =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Borisovich, 2014-10-20
@AlexanderAstafiev

php.net/manual/en/imagick.contraststretchimage.php
Allows you to work with normalization handles. You specify the brightness range yourself.
Attach an example of a photo where normalization works clumsily.

R
RPG, 2014-05-14
@RPG

convert -auto-level in.png out.png
The -auto-level option is only available in more or less modern versions of ImageMagick. You can also play around with -auto-gamma.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question