"Local contrast" filter - required startup pointers

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
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

"Local contrast" filter - required startup pointers

Post by markmarques »

I do not know if this is the right place ( in the forum that is )
to ask if convert.exe is able to "simulate" a "loca constrast" filter ...

What I am asking is something similar to "Tone Mapping" algorithms but in a simpler form.
Where do I start ?

Simply putting :
I have several photos that require some work ( mainly in the dark areas) but they require several corrections ...
My idea is to use the HDRI option in order to avoid posterization ...

Any ideas or pointers regarding the "local contrast" approach ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: "Local contrast" filter - required startup pointers

Post by fmw42 »

If you use or install Cygwin, then you can try many of my tonemapping and other scripts. Otherwise, you can at least read some of the concepts that I used in the script descriptions.

The simplest concept is to make a mask by thresholding your image to isolate the dark areas you want to work in. Then process the whole image for improving the contrast in the dark areas. Then use the mask to composite the original image and processed image so that in the dark areas you get the modified image and everywhere else you get the original image. You can even ramp (blur) the edges of the mask so that you get a smooth transition.
Post Reply