Difference between revisions of "NiftySeg install"

From CMIC
Jump to: navigation, search
Line 12: Line 12:
 
<code>
 
<code>
 
mkdir build path
 
mkdir build path
 +
 
cd build path  
 
cd build path  
 
</code>
 
</code>
Line 21: Line 22:
 
<code>
 
<code>
 
ccmake source path
 
ccmake source path
 +
 
cmake source path
 
cmake source path
 
</code>
 
</code>
Line 27: Line 29:
 
<code>
 
<code>
 
> CMAKE BUILD INSTALL options are Release, RelWithDebInfo or Debug  
 
> CMAKE BUILD INSTALL options are Release, RelWithDebInfo or Debug  
 +
 
> INSTALL_PRIORS Will install the population atlas for the segmentation pipeline
 
> INSTALL_PRIORS Will install the population atlas for the segmentation pipeline
 +
 
> INSTALL_PRIORS_DIRECTORY Directory where the population atlas is going to be installed
 
> INSTALL_PRIORS_DIRECTORY Directory where the population atlas is going to be installed
 +
 
> INSTALL_NIFTYREG Will fetch and automatically configure and install the niftireg package.  
 
> INSTALL_NIFTYREG Will fetch and automatically configure and install the niftireg package.  
 
</code>
 
</code>
Line 38: Line 43:
 
<code>
 
<code>
 
make  
 
make  
 +
 
make install
 
make install
 
</code>
 
</code>

Revision as of 13:11, 3 October 2014

The code can be easily build using cmake (http://www.cmake.org/). The latest version can be downloaded from http://www.cmake.org/cmake/resources/software.html

To download the latest version, please check out the code by copying the following line to the terminal:

svn co https://niftyseg.svn.sourceforge.net/svnroot/niftyseg niftyseg

A packaged stable release is also available at this website. Assuming that the code source are in the source path folder, you will have to first create a new folder, i.e. build path (step 1) and then to change directory to move into that folder (step 2).

mkdir build path

cd build path

There you will need to call ccmake (step 3a) in order to fill in the build options. If you don’t want to specify options, we could just use cmake (step 3b) and the default build values will be used.

ccmake source path

cmake source path

The main option in the ccmake gui are defined bellow: > CMAKE BUILD INSTALL options are Release, RelWithDebInfo or Debug

> INSTALL_PRIORS Will install the population atlas for the segmentation pipeline

> INSTALL_PRIORS_DIRECTORY Directory where the population atlas is going to be installed

> INSTALL_NIFTYREG Will fetch and automatically configure and install the niftireg package.

Once all the flags are properly filled in, just press the ”c” to configure the Make- file and then the ”g” key to generate them. In the prompt, you just have to make (step 4) first and then make install (step 5).

make

make install