Skip to content

Running InVesalius 3 in Linux

Thiago Franco de Moraes edited this page Mar 20, 2020 · 21 revisions

Install Dependencies

Debian and Ubuntu (Tested in Ubuntu 19.10 and 20.04)

sudo apt install python3-wxgtk4.0 python3-numpy python3-scipy python3-pil python3-matplotlib python3-skimage python3-nibabel python3-serial python3-psutil python3-vtk7 python3-vtkgdcm python3-gdcm cython3 python3-h5py python3-imageio python3-keras

Fedora (Tested in Fedora 31)

sudo dnf install gcc gcc-g++ python3-wxpython4 python3-numpy python3-scipy python3-matplotlib python3-scikit-image python3-nibabel python3-pyserial python3-psutil python3-vtk python3-gdcm python3-Cython python3-h5py

Unfortunately, Fedora doesn't have python3-imageio package. But it's possible to install it using pip:

pip3 install --user imageio

Ubuntu and Fedora don't have PlaidML in their repositories, so install it using pip:

pip3 install --user plaidml-keras

Build the Cython modules

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

Running InVesalius

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

python3 app.py

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

python3 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:

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

Clone this wiki locally