Download NiftyReg Obtain the newest version of NiftyReg or by running the following:
mkdir -p ~/Documents/code/niftyreg_source cd ~/Documents/code/niftyreg_source git clone https://github.com/SuperElastix/niftyreg.git . Run CMake/Make Make the build directory.
The default install location is /usr/local, which falls on your PATH.