-
Notifications
You must be signed in to change notification settings - Fork 12
QuickStart
This is a quickstart for installing the toolkit BTK of the fbrain project
Baby Brain Toolkit (BTK) needs the following packages for running :
- CMake (www.cmake.org)
- Tclap (tclap.sourceforge.net)
- OpenMP (openmp.org)
- VTK (www.vtk.org)
- ANN (www.cs.umd.edu/~mount/ANN)
- Doxygen
These libraries can be installed using the following command line:
- for debian-based distributions:
apt-get install cmake cmake-curses-gui libtclap-dev libgomp1 libvtk5-dev libann-dev doxygen
- for MacOSX using macports3:
port install cmake tclap vtk5 libANN doxygen
In order to get a clone of fbrain projet, Git must be installed:
- for debian-based distribution:
apt-get install git-core
- for MacOSX using macports:
port install git-core
BTK needs Insight Toolkit (ITK) for running, currently BTK support the 4.5 version of ITK.
-
Go to http://www.itk.org/ITK/resources/software.html and download the tar.gz archive of ITK v4.5
-
Extract the archive on your computer
-
Then open a terminal and type
mkdir ITK-build
cd ITK-build
ccmake ../(your-ITK-Source-folder)/
This will bring up the CMake configuration screen. Press [c] for configure and then use [t] to toggle the advanced mode. Make the following changes:
BUILD_TESTING = OFF
CMAKE_BUILD_TYPE = Release
ITK_USE_REVIEW = ON
ITK_BUILD_ALL_MODULES = ON
ITKV3_COMPATIBILITY = ON
BUILD_DOCUMENTATION = ON
Then press [c] to configure and [g] to generate the make file. Finally, go to the build folder of ITK (ITK-build) and type make at the prompt to obtain the final build of ITK.
Get the BTK sources
git clone https://github.com/rousseau/fbrain.git
Then
mkdir fbrain-build
cd fbrain-build
ccmake ../fbrain
make
Most of the programs of the BTK suite use the OpenMP library for multi-threading purpose. The number of cores used can be tuned using the following command line (in this example, 4 cores will be used):
export OMP NUM THREADS=4