Installation

Compiling from Source Code

Building from source code is the best way to obtain the latest version of Greedy and it works on all platforms. The instructions below are for Linux and MacOS.

Prerequisites

  1. ITK 5.1.2 or later
  2. CMake 3.16 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
git clone https://github.com/pyushkevich/greedy greedy
mkdir build

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:

Variable Value
ITK_DIR Point to the directory where you compiled ITK
CMAKE_BUILD_TYPE Release (unless you want to debug)
USE_FFTW OFF (you can set it to on, but it’s not going to affect greedy)

After you configure and generate makefiles in ccmake, run:

make

You should now find the executable greedy created in the build directory. You can test that Greedy was compiled by running:

./greedy -v

Using Pre-compiled Binaries