6. MRI

This tutorial provides a short introduction to visualizing MRI data using VisIt. We’ll be relying on the Analyze data format, which is developed at the Mayo Clinic.

6.1. Open the dataset

This tutorial uses the MRI dataset.

  1. Download the MRI dataset.

  2. Click on the Open icon to bring up the File open window.

  3. Navigate your file system to the folder containing “s01_anatomy_stripped.img”.

  4. Highlight the file “s01_anatomy_stripped.img” and then click OK.

6.2. Plotting areas of interest

First, we’ll add a Pseudocolor plot and isoloate the visualization to an area that we’re interseted in. In this case, it’s a human brain located within the dataset.

6.2.1. Create a Pseudocolor plot

  1. Go to Add->Pseudocolor->Variable.

../_images/MRI_Add_Var.png

Fig. 6.20 Adding a Pseudocolor plot.

  1. Click Draw.

../_images/MRI_Block.png

Fig. 6.21 Visualizing our dataset.

The Pseudocolor plot should now be rendered in VisIt’s Viewer window. Modify the view by rotating and zooming in the viewer window. You’ll notice that the visualization doesn’t look very interesting at this point. This is because what we’re really interested in seeing is hidden within the dataset.

6.2.2. Add an Isovolume operator

Adding an Isolvolume operator will help us remove sections of the dataset that we’re uninterested in.

  1. Go to Operators->Selection->Isovolume to add the Isovolume operator.

../_images/MRI_Add_Op.png

Fig. 6.22 Adding a Isovolume operator.

  1. Click on the triangle to the left of your Pseudocolor plot, and double click Isovolume to open up the Isovolume attributes.

../_images/MRI_Isov.png

Fig. 6.23 Opening the Isovolume attributes.

  1. Once you’ve opened the Isovolume attributes, set the Lower bound to 30, and click Apply.

../_images/MRI_Isov_Atts.png

Fig. 6.24 Changing the Isovolume attributes.

  1. Click Draw. You will now see a visualization of a human brain.

../_images/MRI_Blue_Brain.png

Fig. 6.25 Visualizing the underlying data of our dataset.

  1. You can experiment with changing the lower and upper bounds of the Isolvoume attributes to visualize different sections of the dataset.

6.2.3. Change the color table

The default color table doesn’t add much to the visualization, so let’s change the color table to better suite our needs. In this case, we’ll choose Pastel1.

  1. Double click Pseudocolor to open up the Pseudocolor attributes.

  2. Once there, you can choose your color table.

../_images/MRI_Color_Table.png

Fig. 6.26 Changing the color table.

  1. Click Apply to finalize the change.

../_images/MRI_Pink_Brain.png

Fig. 6.27 Visualizing our updated color table.

6.3. Exploring our MRI dataset

Now that we’ve located and visualized the inner section of our dataset, we can further explore characteristics local to this region.

6.3.1. Performing a Slice

First, we’re going to slice out a single cross-section for closer examination.

  1. Go to Operators->Slicing->Slice to add the Slice operator.

  2. Double click on the Slice to bring up the Slice attributes window.

  3. There are a lot of options to configure here. For now, we’ll leave all of the default settings except for Project to 2D. Uncheck this box.

../_images/MRI_Slice_Op.png

Fig. 6.28 Changing the Slice attributes.

  1. Click Apply.

  2. Click Draw.

../_images/MRI_Slice.png

Fig. 6.29 Visualizing a Slice of our MRI dataset.

6.3.2. Performing a ThreeSlice

Another usefull operator that is similar to Slice is ThreeSlice. This operator creates three axis aligned slices of a 3D dataset, one in each dimension.

  1. Remove the Slice operator by clicking the X button to the right of the added Slice.

  2. Go to Operators->Slicing->ThreeSlice to add the ThreeSlice operator.

  3. Double click on the ThreeSlice to bring up the ThreeSlice attributes window. You can move the location of each slice by changing the X, Y, and Z values.

../_images/MRI_ThreeSlice_Op.png

Fig. 6.30 The ThreeSlice attributes.

  1. Click Apply.

  2. Click Draw.

../_images/MRI_ThreeSlice.png

Fig. 6.31 Visualizing a ThreeSlice of our MRI dataset.

6.3.2.1. Performing a ThreeSlice using the point tool

Along with directly entering the X, Y, Z coordinates for your ThreeSlice in the attributes window, Visit also provides the option of using an interactive Point tool for determing these coordinates.

  1. In the top left-hand corner of the visualization window, you’ll find a button that activates the Point tool. Click this button.

../_images/MRI_Point_Tool_Button.png

Fig. 6.32 Activating the Point tool.

  1. Once activated, you will see a point surrounded by a red box within the visualization window.

../_images/MRI_Point_Tool.png

Fig. 6.33 The activated Point tool.

  1. Before changing the orientation of our Point tool, Click on the ThreeSlice attributes window so that VisIt understands that we want to associate this Point tool with these attributes.

  2. Click and drag the red box to change the location of the point defining the X, Y, Z coordinates of the ThreeSlice. VisIt will automatically update the plot.

../_images/MRI_Point_Tool_2.png

Fig. 6.34 Performing a ThreeSlice with the Point tool.

  1. Click the Point tool button again to deactivate the tool.

6.3.3. Performing a Clip

One more way to view the interior of your dataset is to perform a Clip, which clips away entire sections of your data. There are many ways to perform your Clip, each of which has it’s own benefits.

6.3.3.1. Performing a Clip using a single plane

  1. Remove the ThreeSlice operator by clicking the X button to the right of the added ThreeSlice.

  2. Go to Operators->Selection->Clip to add a Clip operator.

  3. Double click on the Clip to bring up the Clip attributes window. Again, there are many settings to configure here. The default settings use a single plane for performing the Clip.

../_images/MRI_Clip_Op.png

Fig. 6.35 The Clip attributes.

  1. Click Apply.

  2. Click Draw.

../_images/MRI_Clip.png

Fig. 6.36 Visualizing a Clip of our MRI dataset.

6.3.3.2. Performing a Clip using two planes

  1. Return to the Clip attributes window, check the Plane 2 box, and change the normal of Plane 2 to “0 -1 0”.

../_images/MRI_Clip_2Plane_Op.png

Fig. 6.37 Altering the Clip attributes.

  1. Click Apply.

../_images/MRI_Clip_2Plane.png

Fig. 6.38 Visualizing a 2 Plane Clip of our MRI dataset.

6.3.3.3. Performing a Clip using three planes

  1. Return to the Clip attributes window, and check the Plane 3 box. Next, change the origin of Plane 3 to “0 0 -50”.

../_images/MRI_Clip_3Plane_Op.png

Fig. 6.39 Altering the Clip attributes.

  1. Click Apply.

../_images/MRI_Clip_3Plane.png

Fig. 6.40 Visualizing a 3 Plane Clip of our MRI dataset.

6.3.3.4. Performing a Clip using a sphere

Let’s update the settings of our Clip so that we remove a spherical section of the data.

  1. Double click on the Clip to bring up the Clip attributes window again. Change the Slice type to Sphere. The attribute options should change significantly. Set the Center to “0 100 0”, and set the radius to 150.

../_images/MRI_Sphere_Clip_Op.png

Fig. 6.41 Changing the Clip attributes.

  1. Click Apply.

  2. Click Draw.

../_images/MRI_Sphere_Clip.png

Fig. 6.42 Visualizing a spherical Clip of our MRI dataset.

6.3.3.5. Performing a Clip using the Plane tool

VisIt also provides an interactive Plane tool that can be used to determine your intersecting plane by orienting a 3D axis within the dataset.

  1. First, Click the Reset button in the Clip attributes window to reset the Clip attributes to their default state.

  2. In the top left-hand corner of the visualization window, you’ll find a button that activates the Plane tool. Click this button.

../_images/MRI_Plane_Tool_Button.png

Fig. 6.43 Activating the Plane tool.

  1. Once activated, you will see a 3D axis defining a plane within the visualization window.

../_images/MRI_3D_Axis.png

Fig. 6.44 The activated Plane tool.

  1. Before changing the orientation of our Plane tool, Click on the Clip attributes window so that VisIt understands that we want to associate this Plane tool with these attributes.

  2. You will see several red boxes aligned with various points of the Plane tool. Click and drag these red boxes to re-orient the plane you are defining. VisIt will automatically perform a Clip at the newly oriented plane.

../_images/MRI_Plane_Tool.png

Fig. 6.45 Performing a Clip with the Plane tool.

6.3.3.6. Performing a Clip using the Sphere tool

Much like the Plane tool, VisIt also provides a Sphere tool, which allows us to interactively define a sphere that can be used to set the Clip attributes.

  1. Click the Plane tool button to deactivate the Plane tool.

  2. Click the Sphere tool button, which is in the same row as the Plane tool.

../_images/MRI_Sphere_Tool_Button.png

Fig. 6.46 Activating the Sphere tool.

  1. Return to the Clip attributes window and change the Slice type to Sphere. Click Apply.

  2. You can change the shape and location of the Sphere tool by clicking and dragging the red boxes associated with the Sphere.

../_images/MRI_Sphere_Tool.png

Fig. 6.47 Performing a Clip with the Sphere tool.