
BinarizeWolfJolion module
-------------------------

Adaptive image binarization based on local contrast maximization. This method has been ranked 5th/43 during the 2009 DIBCO competition. It is also able to perform the more classical Niblack as well as Sauvola et al. methods.


Dependencies
-----------

 - CMake >= 2.8
 - OpenCV >= 2.1 (Linux), OpenCV 2.3.1 (Windows)


Compilation on Ubuntu 12.04 64 bits
-------------------------------------

	# install dependencies
	$ sudo aptitude install cmake
	$ sudo aptitude install libopencv-dev libcv-dev libhighgui-dev libcvaux-dev

	# prepare build directory
	cd BinarizeWolfJolion
	mkdir build && cd build

	# build in release mode
	$ cmake -DSTARLING_DIR=path_to_starling_dir ..
	$ make
	$ ls -l libbinarizewolfjolion.so
	$ make install  # copy files into Starling

	# build in release mode with a specific version of OpenCV
	$ cmake -DSTARLING_DIR=path_to_starling_dir -DOpenCV_DIR=/path_to_directory_containing_OpenCVConfig.cmake ..
	$ make
	ls -l libbinarizewolfjolion.so
	$ make install  # copy files into Starling

	# build in debug mode
	$ cmake -DSTARLING_DIR=path_to_starling_dir -DCMAKE_BUILD_TYPE=Debug ..
	$ make
	ls -l libbinarizewolfjolion.so
	$ make install  # copy files into Starling


Compilation on Windows 7 64 bits
----------------------------------

	- launch CMake GUI
	- Where is the source code = ".../BinarizeWolfJolion"
	- Where to build the binaries = ".../BinarizeWolfJolion/build"
	- click "Configure"
	- set variable "OpenCV_DIR" to ".../opencv_._._" (the directory must contain 'OpenCVConfig.cmake' file)
	- set variable "STARLING_DIR" to Starling directory
	- click "Generate"
	- open "BinarizeWolfJolion/build/BinarizeWolfJolion.sln" solution with visual c++, select 'release' mode, then generate the 'INSTALL' project


Executables
-----------

 None

