Fiber tract visualised on a glass brain

Hi everyone,
I’m trying to represent a fiber tract on a glass brain. I tried several ways but all failed. My fiber tracts are in .tck format. Anyone knows how to generate a figure like the one below? Thanks a lot!

Best,
Chunxiang

You can follow the steps described by Matteo Mancini in https://neurosnippets.com/posts/glass-brain/:

  1. upsample the mask
  2. use a Gaussian filter to smooth the upsampled mask
  3. use a threshold to obtain a neat black-and-white result
  4. dilate the previous volume
  5. subtract the volume obtained in point 4 from the dilated volume
mrresize mask.mif -scale 5 mask_up.mif
mrfilter mask_up.mif smooth -stdev 2 mask_smooth.mif
mrthreshold mask_smooth.mif -abs 0.5 mask_thres.mif
maskfilter mask_thres.mif dilate -npass 2 mask_dilated.mif
mrcalc mask_dilated.mif mask_thres.mif -subtract glass_brain.mif

Then open glass_brain.mif with mrview and switch to volume renderer view and play with the alpha settings untill you get the desired effect.

5 Likes

@bjeurissen Thank you so much for the detailed response. That really helps.

Best,
Chunxiang