Skip to content

Running InVesalius 3 in Windows

Thiago Franco de Moraes edited this page Apr 13, 2020 · 22 revisions

Windows (tested on Windows 10 64 bits)

Prerequisites

  • Python3 (We are using the version 3.7).
  • Visual Studio (We are using the 2017 community edition).
  • Download InVesalius source code.

Python libs

Install WXPython, numpy, scipy, scikit-image, ImageIO, H5Py, Pillow, Pyserial, PSUtil, nibabel, configparser, PyPubsub and plaidml using pip:

pip install wxpython numpy scipy scikit-image imageio h5py pillow pyserial psutil nibabel configparser PyPubsub plaidml-keras

It's also needed to install VTK and GDCM. It's possible to install the wheel files we are providing, but they will only work with Python3.7 to Windows 10 64 bits. If you are using other version of Python and/or Windows, you will need to compile VTK and GDCM by yourself. The link to download the wheel files are:

https://github.com/invesalius/invesalius3/releases/download/v3.1.99992/gdcm-2.8.8-cp37-cp37m-win_amd64.whl

https://github.com/invesalius/invesalius3/releases/download/v3.1.99992/vtk-8.1.2-cp37-cp37m-win_amd64.whl

After downloading the wheel file, using command line enter in the folder with the wheel files and install them using pip:

pip install gdcm-2.8.8-cp37-cp37m-win_amd64.whl

pip install vtk-8.1.2-cp37-cp37m-win_amd64.whl

When using for neuronavigation, also download and install the library below for communication with Polaris tracking devices.

https://github.com/invesalius/invesalius3/releases/download/v3.1.99994/pypolaris-0.0.1-py3-none-win_amd64.whl

pip install pypolaris-0.0.1-py3-none-win_amd64.whl

Compiling InVesalius

Some algorithms of InVesalius are written in Cython for performance. It's needed to compile them. First, you need to install cython:

pip install cython

Open the command prompt of your Visual Studio and go to the InVesalius source, then compile using this command:

python setup.py build_ext --inplace

Running InVesalius:

Inside InVesalius source code run python app.py to run InVesalius.

Clone this wiki locally