This script tries to fix the tone of a photo taken with wrong exposure. In some landscape photos, it can have a nice effect of enhancing the colors.
The general idea is to produce different copies of the image at different gamma levels, then applying simple tone mapping techniques to produce a vibrant photo.
The script allows the user to control the number of copies by setting the lowest and highest gamma setting then the interval. For example lowest=20, highest=170, interval=10 results to (170-20)/10 = 15 copies with increasing gamma level from 0.2 to 1.7. Play around!
This is my first script and not so optimized, anyone is welcome to improve on it.
Warning, the higher the number of copies, the slower it becomes, especially on photos above 640x480. Best to try on reduced copies first.