Differences between revisions 7 and 23 (spanning 16 versions)
Revision 7 as of 2011-03-26 15:57:45
Size: 1345
Comment:
Revision 23 as of 2011-12-07 13:02:30
Size: 2725
Editor: KhoaNguyen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
B. Visualizations of problem areas in MR1 are here:
MR1 :In the brain.finalsurfs.mgz volume (your aux volume in tkmedit) you can see the pial surface encroaching into the cerebellum in slices 65-78 : Representative slice 74 shown below, problem at coordinates 161 98 74 in right hemisphere <<BR>>
{{attachment:mr1before.jpg}}
[[FsTutorial|top]] | [[FsTutorial/LongitudinalTutorial|Longitudinal Tutorial]]
Line 5: Line 3:
Zoomed in version is below <<BR>>
{{attachment:OAS2_0002_MR1_before_zoomed.jpg}}
== Making FinalSurf edits ==
 * To follow this exercise exactly be sure you've downloaded the [[FsTutorial/Data|tutorial data set]] before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names.
Line 8: Line 6:
Here we will look at the second time point ( OAS2_0002_MR2).
Line 9: Line 8:
Go through and remove the voxels in the cerebellum and just surrounding that cause the pial surface misplacement. In the brain.finalsurfs.mgz volume (your aux volume in tkmedit) you can see the pial surface encroaching into the cerebellum in slices 65 - 68: Representative slice 68 shown below, problem at coordinates 111 136 68 in right hemisphere <<BR>> {{attachment:mr2BEFORE.jpg}}
Line 11: Line 10:
Once you are finished editing, save the changes to the volume with File – Save Aux volume. Then, cd into the mri directory of this cross data set, and make a copy of the edited brain.finalsurfs.mgz file to one called brain.finalsurfs.manedit.mgz.:
EXAMPLE FOR MR1:
1. cd OAS2_0002_MR1/mri
2. cp brain.finalsurfs.mgz brain.finalsurfs.manedit.mgz
Zoomed in version is below <<BR>> {{attachment:mr2BEFOREzoomed.jpg}}
Line 16: Line 12:
Next, run the following to have the edits take effect:
{{{recon-all -autorecon3-pial -s OAS2_0002_MR1
}}}
First make a copy of this volume to one called 'brain.finalsurfs.manedit.mgz' and save it within the mri directory of this time point, along with the other volumes.
Line 20: Line 14:
The results will look as follows: <<BR>>
{{attachment:mr1fixed.jpg}}
{{{
cp OAS2_0002_MR2/mri/brain.finalsurfs.mgz OAS2_0002_MR2/mri/brain.finalsurfs.manedit.mgz
}}}
When recon-all is rerun, it will find the ...manedit.. file and knows that we want to incorporate manual edits.
Line 23: Line 19:
Next, load the brain.finalsurfs.manedit.mgz volume as the aux volume in tkmedit and edit this volume by going through the affected slices and removing the voxels in the cerebellum and surrounding areas that cause the pial surface misplacement. Once you are finished editing, save the changes to the volume with File – Save Aux volume.
Line 24: Line 21:
Everything described thus far for MR1 should be repeated for MR2 as required.
Next, it is time to fix the base for this subject - return to the previous page to see how.
Next, run the following to have the edits take effect:
Line 27: Line 23:
   {{{
recon-all -subjid OAS2_0002_MR2 -autorecon-pial
}}}
The results will look as follows, >>see OAS2_0002_MR2_fixed for the full data set:

{{{
tkmedit OAS2_0002_MR2_fixed brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt
}}}
Notice how the pial surface is now pulled in based on the deleted voxels <<BR>> {{attachment:mr2FIXED.jpg}}

Zoomed in version <<BR>> {{attachment:mr2FIXEDzoomed.jpg}}

After looking at and fixing the problem in MR2, open MR1, and find the corresponding problem area (will be found in a similar slice range):

{{{
tkmedit OAS2_0002_MR1 brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt
}}}
Fix the problem just as done for MR2. Compare your results to our fixed version:

{{{
tkmedit OAS2_0002_MR1_fixed brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt
}}}
Next, it is time to fix the base for this subject - return to the [[FsTutorial/LongitudinalTutorial|Longitudinal Tutorial]] to see how.

top | Longitudinal Tutorial

Making FinalSurf edits

  • To follow this exercise exactly be sure you've downloaded the tutorial data set before you begin. If you choose not to download the data set you can follow these instructions on your own data, but you will have to substitute your own specific paths and subject names.

Here we will look at the second time point ( OAS2_0002_MR2).

In the brain.finalsurfs.mgz volume (your aux volume in tkmedit) you can see the pial surface encroaching into the cerebellum in slices 65 - 68: Representative slice 68 shown below, problem at coordinates 111 136 68 in right hemisphere
mr2BEFORE.jpg

Zoomed in version is below
mr2BEFOREzoomed.jpg

First make a copy of this volume to one called 'brain.finalsurfs.manedit.mgz' and save it within the mri directory of this time point, along with the other volumes.

cp OAS2_0002_MR2/mri/brain.finalsurfs.mgz OAS2_0002_MR2/mri/brain.finalsurfs.manedit.mgz

When recon-all is rerun, it will find the ...manedit.. file and knows that we want to incorporate manual edits.

Next, load the brain.finalsurfs.manedit.mgz volume as the aux volume in tkmedit and edit this volume by going through the affected slices and removing the voxels in the cerebellum and surrounding areas that cause the pial surface misplacement. Once you are finished editing, save the changes to the volume with File – Save Aux volume.

Next, run the following to have the edits take effect:

recon-all -subjid OAS2_0002_MR2 -autorecon-pial

The results will look as follows, >>see OAS2_0002_MR2_fixed for the full data set:

tkmedit OAS2_0002_MR2_fixed brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt

Notice how the pial surface is now pulled in based on the deleted voxels
mr2FIXED.jpg

Zoomed in version
mr2FIXEDzoomed.jpg

After looking at and fixing the problem in MR2, open MR1, and find the corresponding problem area (will be found in a similar slice range):

tkmedit OAS2_0002_MR1 brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt

Fix the problem just as done for MR2. Compare your results to our fixed version:

tkmedit OAS2_0002_MR1_fixed brainmask.mgz -aux brain.finalsurfs.mgz -surfs -segmentation aseg.mgz $FREESURFER_HOME/FreeSurferColorLUT.txt

Next, it is time to fix the base for this subject - return to the Longitudinal Tutorial to see how.

FsTutorial/LongFinalSurf (last edited 2011-12-07 13:02:30 by KhoaNguyen)