Differences between revisions 6 and 7
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:

attachment:control_points_before.jpg

In the subject above some of the temporal lobe wm is being ignored by the surfaces. This can be fixed by adding control points in tkmedit.
With your subject loaded in tkmedit, enable editing of control points by selecting '''Tools -> Edit Ctrl Pts'''. Middle-clicking will create a control point; right-clicking will delete a control point. As you select control points, they will appear as small green crosshairs. Select a few control points around your trouble areas, in this case around these strands of the temporal lobe. You want to pick them in a region where the wm intensity is lower than it should be (that is, less than 110). In general, control points can help recover thin wm strands that are dark by putting some at the base of the strand. If you have a region that has a very bright intensity (or very dark) you want to be sure to pick control points in that region. Note that control points will only have an effect if you put them at points that are not equal to 110 in the T1 volume.
With your subject loaded in tkmedit, enable editing of control points by selecting '''Tools -> Edit Ctrl Pts'''. Middle-clicking will create a control point; right-clicking will delete a control point. As you select control points, they will appear as small green crosshairs. Select a few control points around your trouble areas, space them out throughout the brain and on different slices. You want to pick points in a region where the wm intensity is lower than it should be (that is, less than 110). In general, control points can help recover thin wm strands that are dark by putting some at the base of the strand. If you have a region that has a very bright intensity you want to be sure to pick control points in that region. Note that control points will only have an effect if you put them at points that are not equal to 110 in the T1 volume.
Line 35: Line 32:
You can compare the temporal lobe of this subject after control points and see that the surface now picks up the wm that was ignored before the control points were added. You can compare the temporal lobe of this subject before (left) and after (right) control points and see that the surface now picks up the wm that was ignored before the control points were added.

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

Using Control Points to Fix Intensity Normalization

Sometimes the intensity normalization step will fail because it cannot determine the proper intensity for white matter. The result is an erroneous white matter segmentation. A control point is a manually selected location in the volume that the user feels sure is inside the white matter boundary.

Manually Selecting Control Points

Go into the buckner_data/tutorial_subjs directory, set your SUBJECTS_DIR environment variable to the current directory (if not already set), and open the 111_control_points_before brain volume with tkmedit:

cd $FREESURFER_HOME/subjects/buckner_data/tutorial_subjs
setenv SUBJECTS_DIR ${PWD}
tkmedit 111_control_points_before brain.mgz &

With your subject loaded in tkmedit, enable editing of control points by selecting Tools -> Edit Ctrl Pts. Middle-clicking will create a control point; right-clicking will delete a control point. As you select control points, they will appear as small green crosshairs. Select a few control points around your trouble areas, space them out throughout the brain and on different slices. You want to pick points in a region where the wm intensity is lower than it should be (that is, less than 110). In general, control points can help recover thin wm strands that are dark by putting some at the base of the strand. If you have a region that has a very bright intensity you want to be sure to pick control points in that region. Note that control points will only have an effect if you put them at points that are not equal to 110 in the T1 volume.

After creating control points, go to File -> Save Control Points; this will create a file called <subject name>/tmp/control.dat.

Re-running the Intensity Normalization

Once the control points are saved in a .dat file, they can be loaded in as an argument to recon-all. To re-run the first stage of recon-all with control points, use the -usecontrolpoints flag:

recon-all -subjid <subject name> -normalization -usecontrolpoints
  • attachment:control_points_before.jpg attachment:control_points_after.jpg

You can compare the temporal lobe of this subject before (left) and after (right) control points and see that the surface now picks up the wm that was ignored before the control points were added.

FsTutorial/ControlPoints_tktools (last edited 2013-11-01 14:28:26 by MaritzaEbling)