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!