|
|
(4 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | == Download ==
| |
− | 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:
| |
− |
| |
− | <code>
| |
− | git clone git://git.code.sf.net/p/niftyseg/git niftyseg-git
| |
− | </code>
| |
− |
| |
− | A packaged stable release is also available at this website.
| |
− |
| |
− | = Linux & OSX =
| |
− | == Build ==
| |
− | 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).
| |
− |
| |
− | <code>
| |
− | mkdir build path
| |
− |
| |
− | cd build path
| |
− | </code>
| |
− |
| |
− | 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.
| |
− |
| |
− | <code>
| |
− | ccmake source path
| |
− |
| |
− | cmake source path
| |
− | </code>
| |
− |
| |
− | The main option in the ccmake gui are defined bellow:
| |
− | <code>
| |
− | > 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.
| |
− | </code>
| |
− |
| |
− | 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.
| |
− |
| |
− | == Install ==
| |
− | In the prompt, you just have to make (step 4) first and then make install (step 5).
| |
− |
| |
− | <code>
| |
− | make
| |
− |
| |
− | make install
| |
− | </code>
| |
− |
| |
− | = Windows =
| |
− | == Build ==
| |
− | The building process is the following:
| |
− | *Get the source
| |
− | *You'll then need to create a new directory for the build: "niftyreg-build"
| |
− | *You launch CMake-Gui, you set the source path to "niftyreg" and the build path to "niftyreg-build" then hit configure
| |
− | *Cmake will prompt you to select the generator, which means you'll need to select the Visual Studio version you have installed earlier
| |
− | *CMake will run for about a minute, then it will present you with some configuration options. Make sure the Use OpenMP option is enabled.
| |
− | *Set the CMAKE_INSTALL_PREFIX to the folder where you want to install NiftySeg.
| |
− | **Note, that if you want to install NiftySeg under Program Files, you'll need to create the folder yourself and explicitly apply full permissions to write for your user.
| |
− | *Once the flags are set then hit configure and generate. Cmake will generate you the Visual Studio project files.
| |
− | == Install ==
| |
− | *Go to "niftyseg-build", and launch NiftySeg.sln. Consequently Visual Studio will start up.
| |
− | *In Visual Studio select build type, for generic use select Release and build the project (hit F7). VS will run for a couple minutes.
| |
− | *Once the build finished Select and run the Install task (Right Click on Install > Project Only > Build only Install). This will install NiftySeg to the folder you selected earlier.
| |
− | *Probably you'll want to add the install folder to your system path.
| |