Alexander Schwing
Ofer Meshi
Alejandro Lage
+Peter Rockett
Part of this work was part of the Interactive Collaborative Information Systems (ICIS)
project, supported by the Dutch Ministry of Economic Affairs, grant BSIK03024.
git HEAD
--------
+* [Peter Rockett] Improved Makefiles for image segmentation example.
* Removed deprecated interfaces.
* Added FactorGraph::isMaximal(size_t) and FactorGraph::maximalFactor(size_t).
* Added optional reverse argument to Permute::Permute( const std::vector<Var>& )
endif
examples/example_imagesegmentation$(EE) : examples/example_imagesegmentation.cpp $(HEADERS) $(LIB)/libdai$(LE)
- -$(CC) $(CCO)$@ $< $(LIBS) -lpthread -lX11
+ -$(CC) $(CIMGINC) $(CCO)$@ $< $(LIBS) $(CIMGLIBS)
# UNIT TESTS
CCNODEBUGFLAGS=-O3
# Standard include directories
CCINC=-Iinclude -I/cygdrive/e/cygwin/boost_1_42_0
+# Include directory for image segmentation example
+CIMGINC=-I/cygdrive/e/cygwin/CImg-1.3.9
# LINKER
# Standard libraries to include
# For linking with BOOST libraries
BOOSTLIBS_PO=-lboost_program_options
BOOSTLIBS_UTF=-lboost_unit_test_framework
+# Libraries for image segmentation example
+CIMGLIBS=-lpthread -lX11
# Additional library search paths for linker
CCLIB=-Llib -L/cygdrive/e/cygwin/boost_1_42_0/stage/lib
CCNODEBUGFLAGS=-O3
# Standard include directories
CCINC=-Iinclude
+# Include directory for image segmentation example
+CIMGINC=
# LINKER
# Standard libraries to include
# For linking with BOOST libraries
BOOSTLIBS_PO=-lboost_program_options-mt
BOOSTLIBS_UTF=-lboost_unit_test_framework-mt
+# Libraries for image segmentation example
+CIMGLIBS=-lpthread -lX11
# Additional library search paths for linker
CCLIB=-Llib
CCNODEBUGFLAGS=-O3
# Standard include directories
CCINC=-Iinclude -I/opt/local/include
+# Include directory for image segmentation example
+CIMGINC=
# LINKER
# Standard libraries to include
# For linking with BOOST libraries
BOOSTLIBS_PO=-lboost_program_options
BOOSTLIBS_UTF=-lboost_unit_test_framework
+# Libraries for image segmentation example
+CIMGLIBS=-lpthread -lX11
# Additional library search paths for linker
CCLIB=-Llib -L/opt/local/lib
CCDEBUGFLAGS=/Ox /Zi /DDAI_DEBUG
# Flags to add in non-debugging mode (if DEBUG=false)
CCNODEBUGFLAGS=/Ox
+# Include directory for image segmentation example
+CIMGINC=-IE:\windows\CImg-1.3.9
# Standard include directories
CCINC=-Iinclude -IE:\windows\boost_1_42_0
# For linking with BOOST libraries
BOOSTLIBS_PO=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
BOOSTLIBS_UTF=/LIBPATH:E:\windows\boost_1_42_0\stage\lib
+# Libraries for image segmentation example
+CIMGLIBS=gdi32.lib
# Additional library search paths for linker
# (For some reason, we have to add the VC library path, although it is in the environment)
CCLIB=/LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB" /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib"
shipped with Ubuntu 9.04 is known not to work)
* doxygen (only for building the documentation)
* graphviz (only for using some of the libDAI command line utilities)
+ * CImg library (only for building the image segmentation example)
On Debian/Ubuntu, you can easily install the required packages with a single
command:
- apt-get install g++ make doxygen graphviz libboost-dev libboost-graph-dev libboost-program-options-dev libboost-test-dev
+ apt-get install g++ make doxygen graphviz libboost-dev libboost-graph-dev libboost-program-options-dev libboost-test-dev cimg-dev
(root permissions needed).
* A recent version of MicroSoft Visual Studio (2008 is known to work)
* recent boost C++ libraries (version 1.37 or higher)
* GNU make (can be obtained from http://gnuwin32.sourceforge.net)
+ * CImg library (only for building the image segmentation example)
For the regression test, you need:
* version 1.37 shipped with Ubuntu 9.04 is known not to work)
* - doxygen (only for building the documentation)
* - graphviz (only for using some of the libDAI command line utilities)
+ * - CImg library (only for building the image segmentation example)
*
* On Debian/Ubuntu, you can easily install the required packages with a single command:
- * <pre> apt-get install g++ make doxygen graphviz libboost-dev libboost-graph-dev libboost-program-options-dev libboost-test-dev</pre>
+ * <pre> apt-get install g++ make doxygen graphviz libboost-dev libboost-graph-dev libboost-program-options-dev libboost-test-dev cimg-dev</pre>
* (root permissions needed).
*
* On Mac OS X (10.4 is known to work), these packages can be installed easily via MacPorts.
* - A recent version of MicroSoft Visual Studio (2008 is known to work)
* - recent boost C++ libraries (version 1.37 or higher)
* - GNU make (can be obtained from http://gnuwin32.sourceforge.net)
+ * - CImg library (only for building the image segmentation example)
*
* For the regression test, you need:
* - GNU diff, GNU sed (can be obtained from http://gnuwin32.sourceforge.net)