Differences between revisions 2 and 3
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
The skull stripping step takes the bert/mri/T1 volume as input, strips off the skull, and outputs the bert/mri/brain volume. Look at the T1 and brain volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes. The skull stripping step takes the bert/mri/T1 volume as input, strips off the skull, and outputs the bert/mri/brainmask volume. Look at the T1 and brainmask volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes.
Line 30: Line 30:
tkmedit bert brain.mgz -aux T1.mgz tkmedit bert brainmask.mgz -aux T1.mgz
Line 34: Line 34:
The segmentation step takes the /bert/mri/brain volume as input, removes the gray matter and CSF, and outputs the /bert/mri/wm volume. Look at the brain and wm volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes. The segmentation step takes the /bert/mri/brainmask volume as input, removes the gray matter and CSF, and outputs the /bert/mri/wm volume. Look at the brainmask and wm volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes.
Line 37: Line 37:
tkmedit bert wm.mgz -aux brain.mgz tkmedit bert wm.mgz -aux brainmask.mgz

[wiki:FsTutorial top] | [wiki:FsTutorial/MorphAndRecon previous]

Visually check the cortical reconstruction output with tkmedit

For each step so far, look at the output generated for the subject 'bert'. As you are performing a cortical reconstruction, it is a good idea to visually examine your data for errors or defects that may have been generated in the reconstruction steps. When using tkmedit, scroll through the volumes with the up and down arrow keys to visually inspect each slice. For a reminder of which inputs and outputs are taken by each step in the reconstruction, refer to [wiki:RecommendedReconTable this guide] First, set your subjects directory environment variable:

cd $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs
setenv SUBJECTS_DIR ${PWD}

Data conversionBR Before preprocessing is done, data must be converted from native scanner format to mgz format. The output of this step is the bert/mri/orig.mgz. To open it in tkmedit:

tkmedit bert orig.mgz

Intensity normalizationBR The intensity normalization step takes the bert/mri/orig volume as input and outputs the bert/mri/T1 volume. Look at these volumes simultaneously to see the difference from the intensity normalization step. Use Ctrl-1 and Ctrl-2 to switch between the volumes.

tkmedit bert T1.mgz -aux orig.mgz

Skull stripping BR The skull stripping step takes the bert/mri/T1 volume as input, strips off the skull, and outputs the bert/mri/brainmask volume. Look at the T1 and brainmask volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes.

tkmedit bert brainmask.mgz -aux T1.mgz

Segmentation BR The segmentation step takes the /bert/mri/brainmask volume as input, removes the gray matter and CSF, and outputs the /bert/mri/wm volume. Look at the brainmask and wm volumes simultaneously with tkmedit. Use Ctrl-1 and Ctrl-2 to switch between the volumes.

tkmedit bert wm.mgz -aux brainmask.mgz

FsTutorial/ViewSegOutput (last edited 2021-09-22 11:40:17 by DevaniCordero)