Skip to content

Running InVesalius 3 in Linux

Thiago Franco de Moraes edited this page Jul 23, 2018 · 21 revisions

Linux 64 bits (tested on Ubuntu 16.04 and 18.04)

Install the dependencies

sudo apt-get install python-wxgtk3.0 python-numpy python-scipy python-pil python-matplotlib python-skimage python-nibabel python-serial python-psutil python-vtk6 python-vtkgdcm python-gdcm cython python-concurrent.futures python-configparser

Build the Cython modules

Enter on invesalius3 folder and execute: python setup.py build_ext --inplace

Running InVesalius

To make InVesalius run just enter in the invesalius folder then:

python app.py

You can pass a DICOM folder as parameter to make InVesalius starts with the DICOM loaded.

python app.py -i /dicom/folder

It's possible to make InVesalius load a DICOM folder create a surface (mesh) with the given threshold and export the surface to a STL file without loading any GUI:

python app.py --no-gui -i /media/thiago/Documentos/dcm/0051 -t 200,3033 -e /tmp/0051.stl

It's possible to use wxPython4. First you need to install it:

sudo apt install python-wxgtk4.0

Then export $PYTHONPATH env variable to use wxpython4 every time you will use InVesalius:

export PYTHONPATH=/usr/lib/python2.7/dist-packages/wxPython-4.0.1-py2.7-linux-amd64.egg

Then run InVesalius:

python app.py

Clone this wiki locally