Installation

Compile from Source Code

This is the best way to install and works on all platforms. The instructions below are for Linux and MacOS.

Prerequisites

  1. ITK 4.12.2 or later
  2. CMake 3.9 or later (and basic familiarity with this tool)
  3. Git (and basic familiarity with this tool)

Building Greedy

Set up the directory tree and clone greedy repository

cd my_directory
mkdir build
git clone https://github.com/pyushkevich/greedy greedy

At this point, my_directory/greedy contains the source code and my_directory/build is where we will compile greedy

Run ccmake from the build directory

cd build
ccmake ../greedy

When running ccmake, set the following variables:

  • ITK_DIR: point to the directory where you compiled ITK
  • USE_FFTW: OFF (you can set it to on, but it's not going to affect greedy)
  • CMAKE_BUILD_TYPE: Release (unless you want to debug)

After you configure and generate makefiles in ccmake, run

make -j 8

If no errors are generated, you should find the greedy binary in the same directory as the makefile.

Binaries

Greedy binaries are included with ITK-SNAP 3.8 or later. After launching ITK-SNAP, select Help->Install Command-Line Tools to install Greedy.