Computer Vision News - December 2022
30 Medical Imaging Tool Welcome to the last tool review of the year! To top it off, we want to focus on a very “pretty” topic: a slightly different way to display scientific data and meshes on Python . Whether you just need to visualise your experiments for better understanding, or you need to show your results during a meeting, this might be exactly the library you were looking for! Through the mayavi.mlab module (mlab), you can visualise datasets through a Python script or with an interactive prompt. Mayavi uses the TVTK module which is a Python wrapper of the VTK objects. This great flexibility allows the user to grab vtk modules and filters without having to deal with C++ or another software, to read several file formats, create good visualizations and use pipeline architectures like in VTK. Installation The installation of Mayavi might be a bit troublesome because it requires a compatible version of VTK. If you are lucky, installing Mayavi and a GUI toolkit like PyQt5 through pip will be enough. On my Linux machine, a successful combo environment contains Python 3.7, VTK 9, Mayavi 4.8, PyQt5 and Traits 6.2. Image & Mesh Before starting, we downloaded a dataset including a heart cine image and a mesh from the Multimodality STRAUS dataset. In this tutorial, we will read and visualise the image, and overlay a mesh of the ventricles as 3D points. By Marica Muffoletto (twitter ) VISUALIZING DATA WITH MAYAVI
Made with FlippingBook
RkJQdWJsaXNoZXIy NTc3NzU=