REQUIRED LIBRARIES
Our plug-in requires various libraries. Please download these libraries before you install the plug-in (I strongly suggest you download them through Macports if you are on a Mac).

-Gimp (type “port install gimp”; my code is based on version 2.6.12)
-OpenCV (type “port install opencv”; my code is based on version 2.3.1a, Revision 3)
-libPNG (“port install libpng”)
-OpenEXR (“port install openexr”; my code is based on version 1.7.0)
-fftw (“port install fftw”)
-CImg (“port install cimg”)
-intltool (“port install intltool”)
 
INSTALLATION GUIDE
1.Download the code and unzip it.
2.In the terminal, type “./configure” and “make”
3.If make failed, you need to edit paths in configure.in (check that paths in “CPPFLAGS” are correct). Also check src/Makefile.am (make sure library names arecorrect in “lowlight_tonemap_LDFLAGS”). Then retry ./configure and make. 
4.Compile Fredo Durand’s Tone Mapping code by running “make clean” and “make” in FredoToneMap directory. You may need to edit the edit file)
5.Move the binary called “lowlight_tonemap” in your src folder to $home$/.gimp-2.x/plug-ins/.
6.Open Gimp, select and open the image you wish to edit, and look for the plug-in under Filters>Misc>Low Light Tone Mapper.


