Difference between revisions of "Swap slices and swap volumes"

From MIPAV
Jump to: navigation, search
m (Swap Slices)
m (Why swap slices and volumes?)
Line 8: Line 8:
 
In [[DTI Pipeline|DTI scanning]] B0 volume (the volume made without [[DTI Pipeline#Brain MRI introduction|a b pulse]]) is used for creating a whole-brain mask, which is used [[DTI Pipeline#MIPAV DTI pipeline outline|to determine]] which voxels to include into analysis. For most of MRI scanners B0 is either the fist or the last recorded volume, but some scanners put B0 is some different places. The easiest way to move B0 volume to the beginning or to the end of the image is by using the Swap Volumes tool.
 
In [[DTI Pipeline|DTI scanning]] B0 volume (the volume made without [[DTI Pipeline#Brain MRI introduction|a b pulse]]) is used for creating a whole-brain mask, which is used [[DTI Pipeline#MIPAV DTI pipeline outline|to determine]] which voxels to include into analysis. For most of MRI scanners B0 is either the fist or the last recorded volume, but some scanners put B0 is some different places. The easiest way to move B0 volume to the beginning or to the end of the image is by using the Swap Volumes tool.
  
The Swap Slices tool is helpful when the user needs to remove a bunch of adjacent slices from the beginning or from the end of image (or both). For example in brain MRI, researches are interested mostly in analyzing internal slices. The same applies to [[Microscopy: Blind Deconvolution |microscopy]] where first and last slices are usually out of focus.
+
The Swap Slices tool is helpful when the user needs to remove or replace a bunch of slices from the beginning or from the end of image (or both). For example in brain MRI, researches are interested mostly in analyzing internal slices. The same applies to [[Microscopy: Blind Deconvolution |microscopy]] where first and last slices are usually out of focus.
  
 
== Swap Slices ==
 
== Swap Slices ==

Revision as of 14:32, 7 September 2012

This page is a stub.

Background

Both Swap Slices and Swap Volumes allow the user to select slices and volumes and to insert selected slices\volumes into different locations in the image.

Why swap slices and volumes?

In DTI scanning B0 volume (the volume made without a b pulse) is used for creating a whole-brain mask, which is used to determine which voxels to include into analysis. For most of MRI scanners B0 is either the fist or the last recorded volume, but some scanners put B0 is some different places. The easiest way to move B0 volume to the beginning or to the end of the image is by using the Swap Volumes tool.

The Swap Slices tool is helpful when the user needs to remove or replace a bunch of slices from the beginning or from the end of image (or both). For example in brain MRI, researches are interested mostly in analyzing internal slices. The same applies to microscopy where first and last slices are usually out of focus.

Swap Slices

Utilities > 3D Tools > Swap Slices

The Swap Slices tool is available via Utilities > 3D Slice Tools > Swap Slices. The tool could be run for both 3D and 4D images. In case of a 4D image it interchanges (swaps) slices around all volumes in the image.

Running Swap Slices for 3D images

To run the Swap Slices tool, open an image of interest and call the tool via the Utilities > 3D Slice Tools > Swap Slices menu. That Swap Slices dialog box appears.

In the dialog box one can see 2 columns - the right column contains slice numbers and the left column contains position numbers.

Slice number is the number of the slice as it encoded in the image header.

Position number is the position of the slice in the image. It shows where exactly in the image the slice is located. For the image that did not undergone any slice swapping the position number and the slice number are the same.

Now for example, we have a 3D image with 43 slices and we would like to copy slice #21 to Position 0. In order to do that:

  • In the Swap Slices dialog box, select slice 21 and press Crt+C (for PC) or Control+C (for Mac);
  • Navigate to the Position #0, and press Ctrl+V (for PC) or Control+V (for Mac);
  • In the dialog box, you will see that Position #0 now corresponds to Slice #21;
  • To save you changes, press Swap. The new image that has 44 slices appears on your desktop.

Note: the new image has _swap_ addition to its original name. For example, if the initial image name was t2-vol-tr800, the new image after undergoing a single swap operation will have a name t2-vol-tr800_swap. If you apply another swap operation to the t2-vol-tr800_swap image, the new image will have the name t2-vol-tr800_swap_swap (with 2 swaps).

Swap Volumes

TBD.

Comment

Help needs to be created so that user can understand the interface, the scripting parameters, and the result images.