ANTS - masking to improve brain extraction

ANTS - masking to improve brain extraction

Overview

  • Open image in ITK-SNAP

  • Create a rough, partial mask of non-brain regions using snakes automatic segmentation, save

  • Use CAT12 to remove the masked regions

  • Save the image with extracted non-brain in the anatomical folder, and move the original image and the ITK-SNAP mask into a subfolder

  • Re-run (delete the study files in the project folder, or check overwrite to redo everything)

Details

Create partial brain mask

Note: does not need every non-brain area.

  1. Open anatomical

  2. Go to Snake segmentation mode

  3. “Segment 3D” (leave default outlines)

  4. Click in problem area (example shows bright region above brain)

  5. Next

  6. Click Add Bubble at Cursor

  7. Adjust size (needed to reduce size in example)

  8. Next

  9. Press “play” - keep ging until the region fills the area you want. Adjusting the praamaters will make it more or less sensitive.

  10. Finish

  11. Save segmentation (saves to *.nii.gz)

Created masked anatomical

  • Extract mask (from *.nii.gz to *.nii)

  • Go to CAT12’s “Manual image (lession) maksing (seelsnapshot)

    • Select images => anatomical

    • Select lesion masks => mask

    • Run (other two can stay at default)

  • For convenience, rename the file. Instead of the prepended “msk_”, use a suffice “….msk.nii”. This keeps the first part of the filename consistent.

Organize the files

Leave the renamed, masked file in the original coreg folder. Create a subfolder and copy the mask files and unmasked file there. See snapshot

 

1, 2, 3

image-20250505-171644.png

4, 5

image-20250505-171858.png

6, 7, 8

image-20250505-172142.png

9,10

image-20250505-172829.png

11

image-20250505-172811.png

CAT12

image-20250505-173153.png

File organization

image-20250505-204310.png

 

Related content