1 Introduction
I found 3d visualization is really useful for understanding MRI results. Here is a brief guide which is mainly based on this paper.
2 Convert nii to VTK
First of all, we should convert nii files to VTK format using ITK-SNAP.
- Open a main image (e.g. whole brain mask).
- Open a segmentation (e.g. ROIs).
- Export as surface mesh and select labels.
- Save as “VTK PolyData File”. Separate files will be named as “prefix+value”.
- A 3d view will be open in the bottom-left window after saving.
3 Render in 3d
ParaView is an open source visualization application which could render VTK files as surface in 3d.
- Open VTK files, and press Apply (Open as a group will generate time series).
- Show all in the pipeline browser.
- Select every file and add a
Group Datasets
filter. - Change properties.
- Save state.