How to equalize brightness?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ghostmansd
Posts: 24
Joined: 2011-03-21T09:27:47-07:00
Authentication code: 8675308

How to equalize brightness?

Post by ghostmansd »

I think I ask a hard question, which probably has no answer, but I'll try. Is it possible to equalize lightness of the picture? In other words, to make the same effect like in Book Restorer. You can see picture before and after below (be careful, big images!).
ImageImage
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to equalize brightness?

Post by fmw42 »

If you are on Linux/Mac or Windows/Cygwin, you can try my textcleaner script from the link below. Otherwise, you need to play with -lat (local area threshholding), which is the basis of the script.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to equalize brightness?

Post by anthony »

There are a number of ways. Such as -lat, and dividing the image by a blurred version of itself.
But really Fred's Text cleaner is a good starting point.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ghostmansd
Posts: 24
Joined: 2011-03-21T09:27:47-07:00
Authentication code: 8675308

Re: How to equalize brightness?

Post by ghostmansd »

Thank you very much!
Post Reply