Skip to content

Instructions

Sebastiano Ferraris edited this page Jan 23, 2019 · 11 revisions
  • For advanced method symmetrise_wit_registration, extra examples and quick arrays visualisation with ITK-snap you can

    • Install NiftyReg
    • Install ITK-snap These are not fundamentals, as most of the tools works independently. Procede as follows to install NiLabels.
  • Option 1: Install the (hopefully) stable version with pip install nilabels

  • Option2: install in development mode: NiLabels can be installed in development mode in a local virtualenv. with pip. To proceed, initialise a virtual environment and execute the following instructions:

cd <folder where to clone the code>
git clone https://github.com/SebastianoF/nilabels.git
cd nilabels
pip install -r requirements.txt
pip install -e .

In development mode every change made to your local code will be directly affecting the installed library without reinstalling.

  • To uninstall:

pip uninstall nilabels

To delete the library in the virtualenv in case something really wrong happen and pip uninstall will not work correctly:

sudo rm -rf /path_to_site_packages_in_virtualenv/site-packages/nilabels*

Clone this wiki locally