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.
Download the MRI dataset.
Click on the Open icon to bring up the File open window.
Navigate your file system to the folder containing “s01_anatomy_stripped.img”.
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
Go to Add->Pseudocolor->Variable.
Click Draw.
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.
Go to Operators->Selection->Isovolume to add the Isovolume operator.
Click on the triangle to the left of your Pseudocolor plot, and double click Isovolume to open up the Isovolume attributes.
Once you’ve opened the Isovolume attributes, set the Lower bound to 30, and click Apply.
Click Draw. You will now see a visualization of a human brain.
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.
Double click Pseudocolor to open up the Pseudocolor attributes.
Once there, you can choose your color table.
Click Apply to finalize the change.
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.
Go to Operators->Slicing->Slice to add the Slice operator.
Double click on the Slice to bring up the Slice attributes window.
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.
Click Apply.
Click Draw.
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.
Remove the Slice operator by clicking the X button to the right of the added Slice.
Go to Operators->Slicing->ThreeSlice to add the ThreeSlice operator.
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.
Click Apply.
Click Draw.
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.
In the top left-hand corner of the visualization window, you’ll find a button that activates the Point tool. Click this button.
Once activated, you will see a point surrounded by a red box within the visualization window.
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.
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.
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
Remove the ThreeSlice operator by clicking the X button to the right of the added ThreeSlice.
Go to Operators->Selection->Clip to add a Clip operator.
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.
Click Apply.
Click Draw.
6.3.3.2. Performing a Clip using two planes
Return to the Clip attributes window, check the Plane 2 box, and change the normal of Plane 2 to “0 -1 0”.
Click Apply.
6.3.3.3. Performing a Clip using three planes
Return to the Clip attributes window, and check the Plane 3 box. Next, change the origin of Plane 3 to “0 0 -50”.
Click Apply.
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.
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.
Click Apply.
Click Draw.
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.
First, Click the Reset button in the Clip attributes window to reset the Clip attributes to their default state.
In the top left-hand corner of the visualization window, you’ll find a button that activates the Plane tool. Click this button.
Once activated, you will see a 3D axis defining a plane within the visualization window.
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.
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.
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.
Click the Plane tool button to deactivate the Plane tool.
Click the Sphere tool button, which is in the same row as the Plane tool.
Return to the Clip attributes window and change the Slice type to Sphere. Click Apply.
You can change the shape and location of the Sphere tool by clicking and dragging the red boxes associated with the Sphere.