Mesh visualization itk

Hello i would like to use some external visualization tool with multiview, scroling and mesh visualization using python

I have a problem that as far as I understand meshes are only in itk, and all visualization examples that used in python are based on simpleitk.

What can I use ?

Thanks for help !

Hello @Jakub_Mitura,

Neither ITK or SimpleITK are visualization tools. They are primarily image analysis tools with ITK also supporting mesh operations.

If you need to visualize images and meshes, then you should save the images and meshes in standard formats and load them into a visualization program (e.g. Slicer or MITK workbench). This can be done programmatically (e.g. write code in vtk) but is not recommended if you are not already familiar with the visualization toolkit you choose to use (significant effort).

Thanks for response ! I understand that i need external viewer, but i want just to display scrollable data fir fast prototyping of the algorithms, slicer3d would be ok if it can be integrated.

What i mean is execute some line of code see the results execute another see change in results etc

Hello @Jakub_Mitura,

That is a non-trivial request. Perhaps itkwidgets will work for you if you are in a jupyter notebook.

2 Likes

We develop 3D Slicer for exactly this kind of quick prototyping (and for clinical translation). Python and SimpleITK, VTK, etc. are all preinstalled.

You can open a Python console (Ctrl-3), use Slicer as a Jupyter Notebook kernel, or run your Python script from Slicer GUI and see the images, meshes, transforms, lines, curves, planes, ROIs, etc. update in real-time.

1 Like

Thanks!

Just for completeness sake napari is some new option

https://napari.org/

I don’t think napari can visualize 3D meshes. In general, its 3D visualization capabilities are still very limited (it does not even have the basic view with 3 orthogonal slices + 3D view) and its main strength is in displaying large 2D/2.5D microscopy images.

you are right ! I just wanted to keep the reference to it as an option if somebody will look here

1 Like