Visual Neuroscience Lab
  • Home
  • Neurodesktop
  • Behavioral
  • Labmeeting
  • DICOM to GLM
  • MRI
  • People
  • Internship
  • Other Topics
  • Archive
  1. MRI
  2. Control Masks
  • Home
  • Neurodesktop
  • MRI: from DICOM to GLM Analysis
    • 00 - Overview
    • 01 - DICOM to BIDS
    • 02 - Check IntendedFor field of the fmap’s JSON
    • 03 - T1w for PBn
    • 04 - Defacing
    • 05 - Removing Noise Scan
    • 06 - fMRIprep
    • 07 - Probabilistic Retinotopic Mapping
    • 09 - ROI Analysis
    • Troubleshooting
  • MRI
    • MRI-Studies: General Information
    • 3D printing a brain
    • 7T anatomical analysis on neurodesk
    • MRI BIDS and OSF
    • fMRIprep analysis
    • MNI space
    • Control Masks
    • Old MRI setup
    • Update to the MRI lab setup
    • Physiological noise correction
  • Behavioral
    • Vision tests
    • BIDS for behavioral studies
    • Custom-built chin rests
  • People
    • Stipends and prizes for master and PhD students
    • Coffee time
    • Participant compensation
    • Things to do if you are leaving the lab
    • Scientific writing in practice
    • Research funding opportunities
  • Internship
    • Pflichtpraktikum
    • Internship Checklist
    • internship/claustrum_segmentation.qmd
  • Other Topics
    • Calculating a priori sample size using G Power
    • Gamma correction
    • Contribute to the website
    • Older ways to access the server
  • Labmeeting
  • Archive
  1. MRI
  2. Control Masks

Control Masks

MRI
Approach to generate dilated and shifted control masks
Author

MG

Published

December 16, 2025

In a previous project, we needed to provide evidence for the spacial specificity of the response captured in a (Claustrum) mask.

To achieve this, we defined control masks by dilating and shifting the original mask, to cover brain areas surrounding the relevant structure.

The corresponding script can be found here: /shared/ClaustrumLabels/control/create_shifted_and_dilated_masks.ipynb

After specifying location and name of a given mask, this notebook creates (per Hemisphere!):

  1. 6 shifted control masks: the original mask is shifted by one voxel in one of (currently) six directions. This process is repeated until the shifted mask isn´t overlapping with the original mask anymore

  2. 1 mask combining the 6 shifted control regions

  3. 1 dilated mask: the original mask is dilated by a given number of voxels. By subsequently subtracting the original mask, this dilated control contains only voxels surrounding the original structure

Finally, all newly computed masks are stored.

Back to top