800 likes | 963 Views
Slicer Tutorial 6 Module: vtkFreeSurferReaders . Sonia Pujol, Ph.D. Randy Gollub, M.D., Ph.D. Acknowledgments. National Alliance for Medical Image Computing NIH U54EB005149 Neuroimage Analysis Center NIH P41RR013218 Center for Functional Neuroimaging Technologies NIH P41RR14075
E N D
Slicer Tutorial 6 Module: vtkFreeSurferReaders Sonia Pujol, Ph.D. Randy Gollub, M.D., Ph.D.
Acknowledgments National Alliance for Medical Image Computing NIH U54EB005149 Neuroimage Analysis Center NIH P41RR013218 Center for Functional Neuroimaging Technologies NIH P41RR14075 Morphometry Biomedical Informatics Research Network NIH U24 RRO21382 Surgical Planning Laboratory Thanks to Nicole Aucoin
Disclaimer It is the responsibility of the user of 3DSlicer and FreeSurfer to comply with both the terms of the licenses and with the applicable laws, regulations and rules.
Materials Needed • Slicer 2.5MGH http://www.na-mic.org/Wiki/index.php/Slicer:Slicer2.5MGH_Getting_Started • Free Surfer Sample Data: FreesurferSubjects.zip http://www.na-mic.org/Wiki/index.php/Slicer:Workshops:User_Training_101
Goal of this tutorial Guide you step-by-step through the process of loading and viewing FreeSurfer segmentation, surface reconstruction and parcellation results within Slicer.
Prerequisites This tutorial assumes a working knowledge of how to use FreeSurfer to generate the segmentation and surface files. Tutorial materials for FreeSurfer are available at https://surfer.nmr.mgh.harvard.edu/fswiki https://surfer.nmr.mgh.harvard.edu/docs/ftp/pub/docs/fsTutorial/
Prerequisites This tutorial assumes a basic knowledge of how to use 3DSlicer. Slicer Training 1: Loading and Viewing Data Slicer Training 7: Saving Data http://www.namic.org/Wiki/index.php/ Slicer:Workshops:User_Training_101
Loading FreeSurfer Data • Slicer can load • Brain Volumes ……………………. • ASEG Volumes ……………………… • Surfaces………………………………… • Overlays ………………………………….
Overview of Training 6 • Part 1: Loading FreeSurfer Volumes • Part 2:Overlay Brain and Segmentation • Part 3: Building 3D Models • Part 4: Loading Surfaces • Part 5: Group Statistics
vtkFreeSurferReaders Module Select the Menu Modules in the Main Panel Select the category IO and themodule vtkFreeSurferReaders
vtkFreeSurferReaders Module The vtkFreeSurferReaders module appears in the Main Panel of Slicer. The Volumes tab comes up by default.
Loading a Brain file Intensity corrected T1 volume FreeSurfer Pipeline Skull Stripping and Noise Filtering Watershed algorithm Brain.mgz
Loading a Brain file Select the Tab Volumes in the FreeSurfer Module Click on Browse and select the subject bert Click on the mri folder to access the brain volume.
Loading a Brain file Select the file brain.mgz Select the data type GrayScale Click Apply
Loading a Brain file The volume Brain.mgz appears in the Viewer.
Loading a Brain file Click on the V buttons in the Axial, Sagittal and Coronal views.
Loading a Brain file The three anatomical slices appear in the 3D Viewer.
Loading an ASEG file Intensity corrected T1 volume FreeSurfer Pipeline Subcortical processing Segmentation Aseg.mgz
Loading an ASEG file Select the Tab Volumes in the FreeSurfer Module. Click on Browse and select the subject bert Click on the mri folder to access the aseg volume.
Loading an ASEG file Select the file aseg.mgz Select the data type Label Map Click on Apply
Loading an ASEG file The volume aseg.mgz appears in the Viewer. The labels are superimposed on the gray level brain images.
Determining label numbers in an ASEG file # ColHeaders Index SegId NVoxels Volume_mm3 SegName Mean StdDev Min Max Range 1 1 0 0.0 Left-Cerebral-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 2 2 245171 245171.0 Left-Cerebral-White-Matter 121.7886 8.0072 40.0000 186.0000 146.0000 3 3 287069 287069.0 Left-Cerebral-Cortex 91.3494 13.8505 31.0000 220.0000 189.0000 4 4 6876 6876.0 Left-Lateral-Ventricle 48.2126 14.3628 25.0000 106.0000 81.0000 5 5 200 200.0 Left-Inf-Lat-Vent 67.3513 10.8024 35.0000 102.0000 67.0000 6 6 0 0.0 Left-Cerebellum-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 7 7 10514 10514.0 Left-Cerebellum-White-Matter 120.4405 8.5863 43.0000 134.0000 91.0000 8 8 66561 66561.0 Left-Cerebellum-Cortex 98.8117 14.1726 32.0000 211.0000 179.0000 9 9 0 0.0 Left-Thalamus 0.0000 0.0000 0.0000 0.0000 0.0000 10 10 9887 9887.0 Left-Thalamus-Proper 113.5839 10.3047 45.0000 133.0000 88.0000 11 11 3819 3819.0 Left-Caudate 102.9627 12.1416 62.0000 132.0000 70.0000 12 12 6755 6755.0 Left-Putamen 110.0479 7.4787 76.0000 132.0000 56.0000 13 13 2229 2229.0 Left-Pallidum 122.5797 4.2841 105.0000 134.0000 29.0000 14 14 793 793.0 3rd-Ventricle 54.2582 15.3296 28.0000 93.0000 65.0000 15 15 1819 1819.0 4th-Ventricle 51.8305 15.5400 27.0000 108.0000 81.0000 16 16 26616 26616.0 Brain-Stem 113.1949 12.7048 39.0000 136.0000 97.0000 17 17 4489 4489.0 Left-Hippocampus 96.0929 8.6315 56.0000 122.0000 66.0000 18 18 1869 1869.0 Left-Amygdala 94.8671 8.2028 61.0000 118.0000 57.0000 19 19 0 0.0 Left-Insula 0.0000 0.0000 0.0000 0.0000 0.0000 20 20 0 0.0 Left-Operculum 0.0000 0.0000 0.0000 0.0000 0.0000 21 21 0 0.0 Line-1 0.0000 0.0000 0.0000 0.0000 0.0000 22 22 0 0.0 Line-2 0.0000 0.0000 0.0000 0.0000 0.0000 23 23 0 0.0 Line-3 0.0000 0.0000 0.0000 0.0000 0.0000 24 24 1611 1611.0 CSF 59.9684 15.4368 30.0000 107.0000 77.0000 25 25 0 0.0 Left-Lesion 0.0000 0.0000 0.0000 0.0000 0.0000 26 26 733 733.0 Left-Accumbens-area 97.8124 6.7471 67.0000 121.0000 54.0000 27 27 0 0.0 Left-Substancia-Nigra 0.0000 0.0000 0.0000 0.0000 0.0000 28 28 3957 3957.0 Left-VentralDC 117.4001 10.5813 47.0000 135.0000 88.0000 29 29 0 0.0 Left-undetermined 0.0000 0.0000 0.0000 0.0000 0.0000 30 30 56 56.0 Left-vessel 81.5250 7.9485 62.0000 97.0000 35.0000 The file aseg.stats gives the list of the available segmented structures in the dataset. Example of the first 30 structures.
Determining label numbers in an ASEG file # ColHeaders Index SegId NVoxels Volume_mm3 SegName Mean StdDev Min Max Range 1 1 0 0.0 Left-Cerebral-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 2 2 245171 245171.0 Left-Cerebral-White-Matter 121.7886 8.0072 40.0000 186.0000 146.0000 3 3 287069 287069.0 Left-Cerebral-Cortex 91.3494 13.8505 31.0000 220.0000 189.0000 4 4 6876 6876.0 Left-Lateral-Ventricle 48.2126 14.3628 25.0000 106.0000 81.0000 5 5 200 200.0 Left-Inf-Lat-Vent 67.3513 10.8024 35.0000 102.0000 67.0000 6 6 0 0.0 Left-Cerebellum-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 7 7 10514 10514.0 Left-Cerebellum-White-Matter 120.4405 8.5863 43.0000 134.0000 91.0000 8 8 66561 66561.0 Left-Cerebellum-Cortex 98.8117 14.1726 32.0000 211.0000 179.0000 9 9 0 0.0 Left-Thalamus 0.0000 0.0000 0.0000 0.0000 0.0000 10 10 9887 9887.0 Left-Thalamus-Proper 113.5839 10.3047 45.0000 133.0000 88.0000 11 11 3819 3819.0 Left-Caudate 102.9627 12.1416 62.0000 132.0000 70.0000 12 12 6755 6755.0 Left-Putamen 110.0479 7.4787 76.0000 132.0000 56.0000 13 13 2229 2229.0 Left-Pallidum 122.5797 4.2841 105.0000 134.0000 29.0000 14 14 793 793.0 3rd-Ventricle 54.2582 15.3296 28.0000 93.0000 65.0000 15 15 1819 1819.0 4th-Ventricle 51.8305 15.5400 27.0000 108.0000 81.0000 16 16 26616 26616.0 Brain-Stem 113.1949 12.7048 39.0000 136.0000 97.0000 17 17 4489 4489.0 Left-Hippocampus 96.0929 8.6315 56.0000 122.0000 66.0000 18 18 1869 1869.0 Left-Amygdala 94.8671 8.2028 61.0000 118.0000 57.0000 19 19 0 0.0 Left-Insula 0.0000 0.0000 0.0000 0.0000 0.0000 20 20 0 0.0 Left-Operculum 0.0000 0.0000 0.0000 0.0000 0.0000 21 21 0 0.0 Line-1 0.0000 0.0000 0.0000 0.0000 0.0000 22 22 0 0.0 Line-2 0.0000 0.0000 0.0000 0.0000 0.0000 23 23 0 0.0 Line-3 0.0000 0.0000 0.0000 0.0000 0.0000 24 24 1611 1611.0 CSF 59.9684 15.4368 30.0000 107.0000 77.0000 25 25 0 0.0 Left-Lesion 0.0000 0.0000 0.0000 0.0000 0.0000 26 26 733 733.0 Left-Accumbens-area 97.8124 6.7471 67.0000 121.0000 54.0000 27 27 0 0.0 Left-Substancia-Nigra 0.0000 0.0000 0.0000 0.0000 0.0000 28 28 3957 3957.0 Left-VentralDC 117.4001 10.5813 47.0000 135.0000 88.0000 29 29 0 0.0 Left-undetermined 0.0000 0.0000 0.0000 0.0000 0.0000 30 30 56 56.0 Left-vessel 81.5250 7.9485 62.0000 97.0000 35.0000 The label #10 represents the Left-Thalamus Proper. The corresponding segmented volume is available in the current dataset.
Determining label numbers in an ASEG file # ColHeaders Index SegId NVoxels Volume_mm3 SegName Mean StdDev Min Max Range 1 1 0 0.0 Left-Cerebral-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 2 2 245171 245171.0 Left-Cerebral-White-Matter 121.7886 8.0072 40.0000 186.0000 146.0000 3 3 287069 287069.0 Left-Cerebral-Cortex 91.3494 13.8505 31.0000 220.0000 189.0000 4 4 6876 6876.0 Left-Lateral-Ventricle 48.2126 14.3628 25.0000 106.0000 81.0000 5 5 200 200.0 Left-Inf-Lat-Vent 67.3513 10.8024 35.0000 102.0000 67.0000 6 6 0 0.0 Left-Cerebellum-Exterior 0.0000 0.0000 0.0000 0.0000 0.0000 7 7 10514 10514.0 Left-Cerebellum-White-Matter 120.4405 8.5863 43.0000 134.0000 91.0000 8 8 66561 66561.0 Left-Cerebellum-Cortex 98.8117 14.1726 32.0000 211.0000 179.0000 9 9 0 0.0 Left-Thalamus 0.0000 0.0000 0.0000 0.0000 0.0000 10 10 9887 9887.0 Left-Thalamus-Proper 113.5839 10.3047 45.0000 133.0000 88.0000 11 11 3819 3819.0 Left-Caudate 102.9627 12.1416 62.0000 132.0000 70.0000 12 12 6755 6755.0 Left-Putamen 110.0479 7.4787 76.0000 132.0000 56.0000 13 13 2229 2229.0 Left-Pallidum 122.5797 4.2841 105.0000 134.0000 29.0000 14 14 793 793.0 3rd-Ventricle 54.2582 15.3296 28.0000 93.0000 65.0000 15 15 1819 1819.0 4th-Ventricle 51.8305 15.5400 27.0000 108.0000 81.0000 16 16 26616 26616.0 Brain-Stem 113.1949 12.7048 39.0000 136.0000 97.0000 17 17 4489 4489.0 Left-Hippocampus 96.0929 8.6315 56.0000 122.0000 66.0000 18 18 1869 1869.0 Left-Amygdala 94.8671 8.2028 61.0000 118.0000 57.0000 19 19 0 0.0 Left-Insula 0.0000 0.0000 0.0000 0.0000 0.0000 20 20 0 0.0 Left-Operculum 0.0000 0.0000 0.0000 0.0000 0.0000 21 21 0 0.0 Line-1 0.0000 0.0000 0.0000 0.0000 0.0000 22 22 0 0.0 Line-2 0.0000 0.0000 0.0000 0.0000 0.0000 23 23 0 0.0 Line-3 0.0000 0.0000 0.0000 0.0000 0.0000 24 24 1611 1611.0 CSF 59.9684 15.4368 30.0000 107.0000 77.0000 25 25 0 0.0 Left-Lesion 0.0000 0.0000 0.0000 0.0000 0.0000 26 26 733 733.0 Left-Accumbens-area 97.8124 6.7471 67.0000 121.0000 54.0000 27 27 0 0.0 Left-Substancia-Nigra 0.0000 0.0000 0.0000 0.0000 0.0000 28 28 3957 3957.0 Left-VentralDC 117.4001 10.5813 47.0000 135.0000 88.0000 29 29 0 0.0 Left-undetermined 0.0000 0.0000 0.0000 0.0000 0.0000 30 30 56 56.0 Left-vessel 81.5250 7.9485 62.0000 97.0000 35.0000 The label #19 representing the Left-Insula. The corresponding segmented volume is not available in the current dataset.
Overview of Training 6 • Part 1: Loading FreeSurfer Volumes • Part 2: Overlay Brain and Segmentation • Part 3: Building 3D Models • Part 4: Loading Surfaces • Part 5: Group Statistics
Overlay Brain and Segmentation Click on the button Bg (Background) andselect the volume aseg in the Axial view.
Overlay Brain and Segmentation Move the mouse overthe labels in the Axial view.
Overlay Brain and Segmentation The names of the labels appear in the window.
Overlay Brain and Segmentation Find the labels corresponding to the Left Thalamus Proper, Left Caudate and Left Putamen in the three anatomical views.
Overlay Brain and Segmentation Left Thalamus Proper = 10
Overlay Brain and Segmentation Left Putamen = 12
Overlay Brain and Segmentation Left Caudate = 11
Overlay Brain and Segmentation Select View3D in the MainMenu
Overlay Brain and Segmentation Drag right mouse button down in the 3D Viewer to zoom in.
Overlay Brain and Segmentation The Viewer displays a zoom view of the brain and aseg slices superimposed. Drag right mouse button up in the Viewer to zoom out.
Overview of Training 6 • Part 1: Loading FreeSurfer Volumes • Part 2: Overlay Brain and Segmentation • Part 3: Building 3D Models • Part 4: Loading Surfaces • Part 5: Group Statistics
Building a single Model Select the module ModelMaker in the MainMenu Select the panel Create Select the Volume aseg and click on the button Label
Building a single Model Slicer displays the Color Map corresponding to the structures that FreeSurfer can segment.
Building a single Model Move the mouse over the table and select the label of the right hippocampus (label 53).
Building a single Model The label of the right hippocampus appears in the Create panel. Click on Create to build the 3D model.
Building a single Model The 3D model of the right hippocampus appears in the Viewer. Switch to the view 3D,and drag right mouse button down in the Viewer to zoom in.
Building a single Model Slicer displays a zoom view of the right hippocampus.
Building 3D Models Select the module ModelMaker in the MainMenu Select the panel Create Multiple
Building 3D Models The Panel Create Multiple provides the interface to build a set of continuous models from the values in the interval [Starting Label, Ending Label] Select the Volumeaseg and click on the button Starting Label
Building 3D Models Click on the label corresponding to the Left Thalamus Proper (Label 10).
Building 3D Models The value and the color of the selected label appear in the panel. Click on the button Ending Label
Building 3D Models Click on the label corresponding to the Left Pallidum (Label 13).
Building 3D Models Click on Create all to build the 3D models of the selected labels. Slicer reconstructs the 3D models from the labels 10,11,12 and 13.
Building 3D Models The 3D models of the selected structures appear inside the Viewer.