I am attempting to create a 5TT.mif file using 5ttgen hsvs for ACT. The resulting image looks quite good overall (Screenshot1), but the cerebellum area could be improved. I would like to replace only this specific section with the results from SynthSeg (Screenshot2).
I tried creating a SynthSeg2ACT.txt file modeled after FreeSurfer2ACT.txt (Screenshot3. I am actually interested in using only the highlighted sections).
I looked into /usr/local/mrtrix3/lib/mrtrix3/_5ttgen/hsvs.py, but the script was quite complex, and I was unsure which part to modify. Any tips or guidance would be greatly appreciated!
Hello,
Check out the 5ttedit command. If you are able to extract the white-matter and SGM component of the SynthSeg segmentation, something like this might work:
and, to extract the relevant structures from SynthSeg, something like this might be helpful
for region_index in <list_of_index_of_interest>
do
mrcalc <synthseg_segmentation> ${region_index} -eq extracted_region_${region_index}.mif
done
Then add all the relevant extracted regions to create a single cerebellum WM image <cerebellum_wm_synthseg.mif>, and repeat for SGM to create <cerebellum_sgm_synthseg.mif>