|
Size: 12268
Comment:
|
Size: 9780
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| [[FsTutorial|top]] | [[FsTutorial/TroubleshootingData|previous]] | |
| Line 2: | Line 3: |
| *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 3: | Line 5: |
| Sometimes the white matter is not segmented correctly: sometimes voxels that should be white matter are excluded, and other times voxels that should not be white matter are included in error. Either of these occurences can be fixed with simple manual edits. Below you will find examples of a few of the common problems and how to fix them. For some people it is easiest to see these problems when looking at the inflated surface in tksurfer. Others can pick them out while viewing the volumes in tkmedit. Either method is fine for identifying these problems. However they can only be fixed using tkmedit with the wm.mgz volume. | |
| Line 4: | Line 7: |
| == Geometric inaccuracy due to brain lesion == | |
| Line 5: | Line 9: |
| wm1_edits_before is an example of white matter being excluded from the wm.mgz volume due to the presence of a brain lesion. This page will walk you through fixing this specific example as well as other common problems with the wm.mgz volume. | |
| Line 6: | Line 11: |
| First, make sure you have wm1_edits_before loaded in tkmedit: ---- {{{ tkmedit wm1_edits_before brainmask.mgz -aux wm.mgz -surfs }}} ---- If you look at coronal slice 160 you will notice an area on the right hemisphere where the white surface (yellow line) does not follow the surface of the brain, but in fact cuts into it. This geometric inaccuracy is caused by a lesion where white matter has been marked as non-white matter. |
|
| Line 7: | Line 19: |
| {{attachment:WMlesionsWMbefore.jpg}} | |
| Line 8: | Line 21: |
| == Fixing Common Geometric Inaccuracies in White Matter Surfaces == | You can see this as a dimple or hole on the inflated surface in tksurfer too (see next image). If not already open, in a second terminal window, open the rh surface in tksurfer and you can see the dimple or hole on the medial side: ---- {{{ tksurfer wm1_edits_before rh inflated }}} ---- {{attachment:lesiontksurfer.jpg}} |
| Line 10: | Line 29: |
| Before you begin editing inaccuracies, you will want to set your SUBJECTS_DIR environment variable to the correct path. To do this, change to the tutorial directory, and then set the SUBJECTS_DIR variable to this current working directory: | With the wm.mgz volume loaded into tkmedit you can see that this area has been left out of the wm volume completely. |
| Line 12: | Line 31: |
| {{{ cd $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs setenv SUBJECTS_DIR ${PWD} }}} |
{{attachment:WMlesionsbefore.jpg}} |
| Line 17: | Line 33: |
| '''Manual Editing'''[[BR]] First, open 008_manual_edits_before in tkmedit with the white matter volume (main) and brain volume (aux) simultaneously, and the lh white surface loaded on top: |
To fix this problem you will need to fill in the missing voxels in the wm.mgz volume. First, it's a good idea to use the arrow keys to scroll through the individual slices in the volume until you get a good idea of where the problem starts and ends. You will want to start filling in voxels when the inaccuracy appears, and keep filling them in slice by slice until the problem is no longer visible. The coronal view and a brush radius of one or two are good settings for painting in voxels. Zoom In and Out either by using the icons in the [[FsTutorial/Tools|tkmedit]] Tool window or by Ctrl-right mouse button (Zoom In) and Ctrl-left mouse button (Zoom Out) to help you see the inaccuracy. |
| Line 20: | Line 35: |
| To begin editing voxels, click on the Edit Voxels Tool button {{attachment:icon_edit_volume.gif}}, then go to '''Tools --> Configure Brush Info...''' Set the ''radius'' to ''2'' and ''Shape'' to be ''Circle''. By default tkmedit will edit on the main volume loaded, if the wm volume is loaded as your aux volume you will also need to select ''Aux volume'' as the ''Target''. Use the middle button on your mouse to begin painting in the voxels. If you fill in too many voxels, the right mouse button acts as an eraser. When you are done filling the region, slice 160 should look like this: | |
| Line 21: | Line 37: |
| {{{ tkmedit 008_manual_edits_before wm.mgz lh.white -aux brain.mgz }}} |
{{attachment:lesionafter.jpg}} |
| Line 25: | Line 39: |
| You can use Ctrl-1 and Ctrl-2 to switch back and forth between the main and aux volumes. | While filling the hole in slice 160, you will notice that the hole is not completely enclosed. To see where the boundary should be, switch back and forth between the brainmask.mgz and wm.mgz volume with Ctrl-1 and Ctrl-2. Use the brainmask.mgz volume as a guide, and make the boundary of the voxels that you paint in correspond as closely as possible to the boundaries suggested in the brain volume. Go to the next slice, and fill in this slice in the same way. You will need to continue filling in slices in this fashion until the region is completely filled in. If you would like to compare your edits to ones that have been done for you you can open a second tkmedit with the wm1_edits_after wm.mgz volume, and for each slice check your results with the corresponding slice in the wm1_edits_after volume. At any time, you can save the changes you've made to the wm volume by selecting 'Save Volume' in [[FsTutorial/Tools|tkmedit]]'s 'File' menu, and clicking 'OK'. You can verify your results by viewing the changes made to the wm1_edits_after wm.mgz volume |
| Line 27: | Line 42: |
| '''Geometric inaccuracy due to brain lesion'''[[BR]] With the brain volume displayed and the surfaces overlayed in tkmedit scroll through to verify that the surfaces follow the actual surface of the cortex. You will notice an area as you get to the anterior horn of the lateral ventricle (around slice 155) where both the white surface (yellow line) and pial surface (red line) do not follow the surface of the brain, but in fact cut into it. This geometric inaccuracy is caused by an area near the lateral ventricle where white matter has been marked as non-white matter, and needs to be filled in the 3D volume. In this case, the autofill routine has already filled the ventricles, but the brain pathology resulted in an incorrect segmentation. attachment:008_before_brainlesion.jpg By switching the view back to the wm volume, you can see that this area has been left out of the wm volume completely. attachment:008_before_brainlesionWM.jpg Use the arrow keys to scroll through the individual slices in the volume, until you get a good idea of where the problem starts and ends. Start filling in voxels when the inaccuracy appears, and keep filling them in slice by slice until the problem is no longer visible. The coronal view and a brush radius of one or two are good settings for painting in voxels. Zoom In and Out either by using the icons in the [wiki:Self:FsTutorial/Tools tkmedit] Tool window or by Ctrl-right mouse button (Zoom In) and Ctrl-left mouse button (Zoom Out) to help you see the inaccuracy. To begin editing voxels, click on the Edit Voxels Tool button, then go to Tools -> Configure Brush Info... Set the radius to be 2, and Shape to be Circle. Use the middle button on your mouse to begin painting in the voxels. If you fill in too many voxels, the right mouse button acts as an eraser. Start with slice 155, when you are done filling the region, your slice should look like this: attachment:lesion-fixed.jpg Go to the next slice, and fill in this slice in the same way. You will notice that the hole is not completely enclosed. To see where the boundary should be, switch back and forth between the brain and wm volume with Ctrl-1 and Ctrl-2. Use the brain volume as a guide, and make the boundary of the voxels that you paint in correspond as closely as possible to the boundaries suggested in the brain volume. You will need to continue filling in slices in this fashion until the region is completely filled in. Open a second tkmedit with the 008_manual_edits_after wm volume, and for each slice check your results with the corresponding slice in the 008_manual_edits_after volume. The 008_manual_edits_after volume has the region filled in both the right and left hemispheres. At any time, you can save the changes youve made to the wm volume by selecting Save Volume in [wiki:Self:FsTutorial/Tools tkmedit]s File menu, and clicking OK. You can verify your results by viewing the changes made to the 008_manual_edits_after wm volume '''Tips:'''[[BR]] |
'''Tips:'''<<BR>> |
| Line 50: | Line 46: |
| * When filling in regions that are in both hemispheres, you may opt to fill them in both hemispheres at the same time, when you become more comfortable with editing inaccuracies. To load the white surface for the other hemisphere you will need to go to File --> Aux Surface --> Load Aux Main Surface and select the other hemisphere's white surface (i.e., rh.white). This will load the rh.white surface as the Aux surface and you can now follow the surfaces for both hemispheres at the same time. All available surfaces can be displayed by selecting them in [wiki:Self:FsTutorial/Tools tkmedit]s Display menu. | * When editing geometric inaccuracies in the future, you may find it easier to edit the first slice and last slice first, thereby 'capping' the slices that need filling. Then you just need to fill all the slices between the endcaps. |
| Line 52: | Line 48: |
| * When editing geometric inaccuracies in the future, you may find it easier to edit the first slice and last slice first, thereby capping the slices that need filling. Then you just need to fill all the slices between the endcaps. | * Sometimes there is variation between a subject's left and right hemispheres, so that in a particular slice one hemisphere's region will finally 'open up', but the other hemisphere's region is still enclosed. In such cases, continue to fill the enclosed region only, even though the other is open. This will address the topological problem. |
| Line 54: | Line 50: |
| * Sometimes there is variation between a subjects left and right hemispheres, so that in a particular slice one hemispheres region will finally open up, but the other hemispheres region is still enclosed. In such cases, continue to fill the enclosed region only, even though the other is open. This will address the topological problem. | * Problems like the one shown here, due to brain lesions, should always be fixed with edits to the wm.mgz volume. Do not use control points to try and automatically adjust the intensity in these areas. |
| Line 56: | Line 52: |
| Surface shown after the inaccuracy is corrected: attachment:008_after_brainlesionCorrect.jpg This image shows how your edits affect the inflated surface. It is used for illustrative purposes only; to save time, you may prefer to edit all visible inaccuracies before recreating the surfaces. After you have saved all of your edits, you can recreate the final surfaces with: |
After you have saved all of your edits, you could recreate the final surfaces with the command: |
| Line 65: | Line 55: |
| recon-all -autorecon2-wm -subjid 008_manual_edits_before | recon-all -autorecon2-wm -subjid wm1_edits_before |
| Line 67: | Line 57: |
| '''Do not run this command if you are conducting the tutorial!''' This step will take a long time and there is no need to run it for the tutorial purposes. |
|
| Line 68: | Line 60: |
| '''Temporal Lobe'''[[BR]] After initial segmentation, some subjects may have an additional geometrical inaccuracy in the temporal lobe, resulting in the disconnection of thin gyri. This results from the weak intensity obtained from the thin strands of temporal gyri and it is addressed by thickening the strand(s). |
== Non-white matter classified as white matter == |
| Line 72: | Line 62: |
| Open 111_manual_edits_before in tkmedit with the white matter volume (main) and brain volume (aux) simultaneously, and the lh white surface loaded on top: | Sometimes non-white matter (i.e., skull) is included as white matter. To load in the example use this command: ---- {{{ tkmedit wm2_edits_before wm.mgz -aux brainmask.mgz -surfs }}} ---- Scroll through the brainmask.mgz volume slices and as you go posterior you will see a group of voxels included as white matter, around slice 152. They are surrounded by the white surface (yellow line). This group lies outside of the pial surface (red line) and is clearly not white matter. In order to correct this inaccuracy it is necessary to delete the voxels which are not part of the white matter. |
| Line 74: | Line 70: |
| {{attachment:BMbefore.jpg}} {{attachment:WMbeforejpg.jpg}} Using Ctrl-1 and Ctrl-2 to switch back and forth between the brain and wm volumes, you can clearly see that this region should not be labeled as white matter. To delete these voxels, click the Edit Voxels Tool {{attachment:icon_edit_volume.gif}} button in the tkmedit toolbar, and put your mouse cursor over the voxels you want to delete. Delete them with the right mouse button. This is what slice 152 should look like after you have deleted the errant voxels: {{attachment:WMvoxdelete.jpg}} Go through the slices with the up and down arrows, continuing to delete voxels until the inaccuracy is no longer there. (It spans approximately 30 slices.) You can check your results by looking at the wm2_edits_after wm.mgz volume in tkmedit. Note that in this volume, only a few of the voxels have been removed from each slice, instead of removing the entire inaccuracy. This is because you only need to remove as many voxels as is necessary for the segmentation to classify this region as non-white matter. Until you are more comfortable with editing inaccuracies, go ahead and remove all of the voxels. More practice will give you a better feel for how many voxels need to be removed. Once you have made all the edits to the wm.mgz volume you would regenerate the surfaces using the following command: |
|
| Line 75: | Line 82: |
| tkmedit 111_manual_edits_before wm.mgz lh.white aux brain.mgz | recon-all -autorecon2-wm -autorecon3 -subjid wm2_edits_before |
| Line 77: | Line 84: |
| '''Do not run this command if you are conducting the tutorial!''' This step will take a long time and there is no need to run it for the tutorial purposes. |
|
| Line 78: | Line 87: |
| As you scroll through the slices and look at the temporal gyri as you move further forward. You will find that one gyrus detaches and then reattaches a few slice later. The problem is visible in slices 133-135 | == Lateral Ventricle == |
| Line 80: | Line 89: |
| attachment:111_before_temporallobeBRAIN.jpg | The automatic edits made to to wm volume will fill the lateral ventricles. On occasion they are not filled entirely. Open wm3_edits_before in tkmedit. |
| Line 82: | Line 91: |
| attachment:templobe-before.jpg | ---- {{{ tkmedit wm3_edits_before wm.mgz -aux brainmask.mgz -surfs }}} ---- |
| Line 84: | Line 97: |
| This gyrus will need to be reconnected to fix the inaccuracy. As in the brain lesion manual edit, paint in voxels to reconnect the islands to the main parts of the gyri, using the brain.mgz volume as a guide. When you are finished, your slice should look something like this | As you scroll to the posterior portions of the brainmask.mgz you will see the white surface (yellow line) start to follow the edge of the ventricle (look around coronal slice 53). |
| Line 86: | Line 99: |
| attachment:templobe-after.jpg | {{attachment:111_before_ventricleBRAIN.jpg}} |
| Line 88: | Line 101: |
| Continue with the rest of the slices where the inaccuracy is present. When reattaching islands of white matter, keep in mind that the voxels are not considered connected if they only touch at the corners. They must share an entire edge in order to be connected. When you are finished with your manual edits, make sure to save your changes to the volume by selecting Save Volume in [wiki:Self:FsTutorial/Tools tkmedit]s File menu, and clicking OK. | When you toggle between wm and the brain volume, you can see that this portion of the ventricle should be filled in. This inaccuracy can be corrected in the same fashion as the inaccuracies above, using the Edit Voxels tool to fill in the missing voxels. |
| Line 90: | Line 103: |
| '''Frontal Lobe: non-white matter classified as white matter'''[[BR]] Sometimes non-white matter (i.e., skull) is included as white matter. To view this keep 111_manual_edits_before loaded in tkmedit as before. Scroll through the brain volume slices, with the lh.white surface shown, and as you get towards the frontal lobe you will see a group of voxels included as white matter, they are surrounded by the white surface (yellow line). This group lies outside of the pial surface (red line) and is clearly not white matter. In order to correct this inaccuracy, it is necessary to delete the voxels which are not part of the white matter. attachment:111_before_frontallobeBRAIN.jpg attachment:frontlobe1.jpg Using Ctrl-1 and Ctrl-2 to switch back and forth between the brain and wm volumes, you can clearly see that this region should not be labeled as white matter. To delete these voxels, click the Edit Voxels Tool button in the tkmedit toolbar, and put your mouse cursor over the voxels you want to delete. Delete them with the right mouse button. This is what slice 179 should look like after you have deleted the errant voxels: attachment:frontlobe2.jpg Go through the slices with the up and down arrows, continuing to delete voxels until the inaccuracy is no longer there. (It spans approximately 30 slices.) You can check your results by looking at the 111_manual_edits_after wm.mgz volume in tkmedit. Note that in this volume, only a few of the voxels have been removed from each slice, instead of removing the entire inaccuracy. This is because you only need to remove as many voxels as is necessary for the segmentation to classify this region as non-white matter. Until you are more comfortable with editing inaccuracies, go ahead and remove all of the voxels. More practice will give you a better feel for how many voxels need to be removed. '''Frontal lobe: white matter classified as non-white matter'''[[BR]] Sometimes white matter can be mistakenly excluded from the wm volume and subsequent surfaces. Continue looking at 111_manual_edits_before loaded in tkmedit as above, with the lh.white surface loaded on top. Scrolling through the slices further forward in the volume you will see that the white surface (yellow line) begins to cut into the white matter of the brain. attachment:111_before_holeBRAIN.jpg attachment:dimple1.jpg Use Ctrl-1 and Ctrl-2 to toggle between the wm and brain volume to be sure that the hole should indeed be labeled white matter. Use the same method used to fill in this hole as described earlier. When you are finished, slice 170 should look like this: attachment:dimple2.jpg Scroll through the slices and fill each hole until the inaccuracy disappears. When you are done, you can check your results by opening up the 111_manual_edits_after wm.mgz volume in tkmedit. '''Lateral Ventricle'''[[BR]] The automatic edits made to to wm volume will fill the lateral ventricles. On occasion they are not filled entirely. Continue looking at 111_manual_edits_before in tkmedit, with the lh.white surface loaded on top. As you scroll to the posterior portions of the brain you will see the white surface (yellow line) start to follow the edge of the ventricle. attachment:111_before_ventricleBRAIN.jpg When you toggle between wm and the brain volume, you can see that this portion of the ventricle should be filled in. This inaccuracy can be corrected in the same fashion as the inaccuracies above, using the Edit Voxels tool to fill in the missing voxels. attachment:occlobe1.jpg |
{{attachment:occlobe1.jpg}} |
| Line 128: | Line 107: |
| attachment:occlobe2.jpg | {{attachment:occlobe2.jpg}} |
| Line 130: | Line 109: |
| Continue filling in this region until the hole disappears. The geometric inaccuracy is present from slices 50 through 168. | Continue filling in this region until the hole disappears. The geometric inaccuracy is present from slices 50 through 168. Once you have fully edited the wm.mgz volume you would regenerate the surfaces with the following command: {{{ recon-all -autorecon2-wm -autorecon3 -subjid wm3_edits_before }}} |
| Line 132: | Line 114: |
| The remaining inaccuracies are other examples of commonly seen problems with brain topology. You may choose to correct these on your own, using the 111_manual_edits_after volume as a guide for what your finished result should look like. '''Optic Nerve'''[[BR]] The optic nerve appears as a sharp projection on the inflated surface, and although it doesn't result in a geometric inaccuracy, it should be removed. The high curvature of this non-cortical structure unnecessarily complicates flattening and spherical morphing. Find the first sagittal slice where the optic nerve is present, and erase it. Continue to do the same when scrolling through each subsequent slice until the optic nerve is no longer visible. A brush size of 1-2 works well for this edit. Comparing the T1 image is useful in slices where the optic nerve looks fragmented. When finished, be sure to repeat the process in the other hemisphere. |
'''Do not run this command if you are conducting the tutorial!''' This step will take a long time and there is no need to run it for the tutorial purposes. |
Making Edits to the White Matter
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.
Sometimes the white matter is not segmented correctly: sometimes voxels that should be white matter are excluded, and other times voxels that should not be white matter are included in error. Either of these occurences can be fixed with simple manual edits. Below you will find examples of a few of the common problems and how to fix them. For some people it is easiest to see these problems when looking at the inflated surface in tksurfer. Others can pick them out while viewing the volumes in tkmedit. Either method is fine for identifying these problems. However they can only be fixed using tkmedit with the wm.mgz volume.
Geometric inaccuracy due to brain lesion
wm1_edits_before is an example of white matter being excluded from the wm.mgz volume due to the presence of a brain lesion. This page will walk you through fixing this specific example as well as other common problems with the wm.mgz volume.
First, make sure you have wm1_edits_before loaded in tkmedit:
tkmedit wm1_edits_before brainmask.mgz -aux wm.mgz -surfs
If you look at coronal slice 160 you will notice an area on the right hemisphere where the white surface (yellow line) does not follow the surface of the brain, but in fact cuts into it. This geometric inaccuracy is caused by a lesion where white matter has been marked as non-white matter.
You can see this as a dimple or hole on the inflated surface in tksurfer too (see next image). If not already open, in a second terminal window, open the rh surface in tksurfer and you can see the dimple or hole on the medial side:
tksurfer wm1_edits_before rh inflated
With the wm.mgz volume loaded into tkmedit you can see that this area has been left out of the wm volume completely.
To fix this problem you will need to fill in the missing voxels in the wm.mgz volume. First, it's a good idea to use the arrow keys to scroll through the individual slices in the volume until you get a good idea of where the problem starts and ends. You will want to start filling in voxels when the inaccuracy appears, and keep filling them in slice by slice until the problem is no longer visible. The coronal view and a brush radius of one or two are good settings for painting in voxels. Zoom In and Out either by using the icons in the tkmedit Tool window or by Ctrl-right mouse button (Zoom In) and Ctrl-left mouse button (Zoom Out) to help you see the inaccuracy.
To begin editing voxels, click on the Edit Voxels Tool button
, then go to Tools --> Configure Brush Info... Set the radius to 2 and Shape to be Circle. By default tkmedit will edit on the main volume loaded, if the wm volume is loaded as your aux volume you will also need to select Aux volume as the Target. Use the middle button on your mouse to begin painting in the voxels. If you fill in too many voxels, the right mouse button acts as an eraser. When you are done filling the region, slice 160 should look like this:
While filling the hole in slice 160, you will notice that the hole is not completely enclosed. To see where the boundary should be, switch back and forth between the brainmask.mgz and wm.mgz volume with Ctrl-1 and Ctrl-2. Use the brainmask.mgz volume as a guide, and make the boundary of the voxels that you paint in correspond as closely as possible to the boundaries suggested in the brain volume. Go to the next slice, and fill in this slice in the same way. You will need to continue filling in slices in this fashion until the region is completely filled in. If you would like to compare your edits to ones that have been done for you you can open a second tkmedit with the wm1_edits_after wm.mgz volume, and for each slice check your results with the corresponding slice in the wm1_edits_after volume. At any time, you can save the changes you've made to the wm volume by selecting 'Save Volume' in tkmedit's 'File' menu, and clicking 'OK'. You can verify your results by viewing the changes made to the wm1_edits_after wm.mgz volume
Tips:
- Sometimes regions may appear enclosed in some slices (i.e. appear as holes), open in subsequent slices (i.e. no longer appear as holes), then enclosed again as you scroll forward. The rule of thumb when editing these is to keep filling until you reach the slice where they finally open up and are no longer enclosed.
- When editing geometric inaccuracies in the future, you may find it easier to edit the first slice and last slice first, thereby 'capping' the slices that need filling. Then you just need to fill all the slices between the endcaps.
- Sometimes there is variation between a subject's left and right hemispheres, so that in a particular slice one hemisphere's region will finally 'open up', but the other hemisphere's region is still enclosed. In such cases, continue to fill the enclosed region only, even though the other is open. This will address the topological problem.
- Problems like the one shown here, due to brain lesions, should always be fixed with edits to the wm.mgz volume. Do not use control points to try and automatically adjust the intensity in these areas.
After you have saved all of your edits, you could recreate the final surfaces with the command:
recon-all -autorecon2-wm -subjid wm1_edits_before
Do not run this command if you are conducting the tutorial! This step will take a long time and there is no need to run it for the tutorial purposes.
Non-white matter classified as white matter
Sometimes non-white matter (i.e., skull) is included as white matter. To load in the example use this command:
tkmedit wm2_edits_before wm.mgz -aux brainmask.mgz -surfs
Scroll through the brainmask.mgz volume slices and as you go posterior you will see a group of voxels included as white matter, around slice 152. They are surrounded by the white surface (yellow line). This group lies outside of the pial surface (red line) and is clearly not white matter. In order to correct this inaccuracy it is necessary to delete the voxels which are not part of the white matter.
Using Ctrl-1 and Ctrl-2 to switch back and forth between the brain and wm volumes, you can clearly see that this region should not be labeled as white matter. To delete these voxels, click the Edit Voxels Tool
button in the tkmedit toolbar, and put your mouse cursor over the voxels you want to delete. Delete them with the right mouse button. This is what slice 152 should look like after you have deleted the errant voxels:
Go through the slices with the up and down arrows, continuing to delete voxels until the inaccuracy is no longer there. (It spans approximately 30 slices.) You can check your results by looking at the wm2_edits_after wm.mgz volume in tkmedit. Note that in this volume, only a few of the voxels have been removed from each slice, instead of removing the entire inaccuracy. This is because you only need to remove as many voxels as is necessary for the segmentation to classify this region as non-white matter. Until you are more comfortable with editing inaccuracies, go ahead and remove all of the voxels. More practice will give you a better feel for how many voxels need to be removed.
Once you have made all the edits to the wm.mgz volume you would regenerate the surfaces using the following command:
recon-all -autorecon2-wm -autorecon3 -subjid wm2_edits_before
Do not run this command if you are conducting the tutorial! This step will take a long time and there is no need to run it for the tutorial purposes.
Lateral Ventricle
The automatic edits made to to wm volume will fill the lateral ventricles. On occasion they are not filled entirely. Open wm3_edits_before in tkmedit.
tkmedit wm3_edits_before wm.mgz -aux brainmask.mgz -surfs
As you scroll to the posterior portions of the brainmask.mgz you will see the white surface (yellow line) start to follow the edge of the ventricle (look around coronal slice 53).
When you toggle between wm and the brain volume, you can see that this portion of the ventricle should be filled in. This inaccuracy can be corrected in the same fashion as the inaccuracies above, using the Edit Voxels tool to fill in the missing voxels.
When you are finished filling in slice 53, it should look like this:
Continue filling in this region until the hole disappears. The geometric inaccuracy is present from slices 50 through 168. Once you have fully edited the wm.mgz volume you would regenerate the surfaces with the following command:
recon-all -autorecon2-wm -autorecon3 -subjid wm3_edits_before
Do not run this command if you are conducting the tutorial! This step will take a long time and there is no need to run it for the tutorial purposes.
