make sure that it is the ..._acq-MPRAGE_T1w_reoriented_brain_seg.nii.gz which contains the final segmentation of gray/white/csf. (and not _pveseg.nii.gz). Sample directory /home/chrispycheng/proj/nuisance/data/dbic/simple_workflow/sub-sid000278_ses-20170307X152148_acq-MPRAGE_T1w/segs
adjust the script so it takes only gray matter voxels (almost there)
..._acq-MPRAGE_T1w_reoriented_brain_seg.nii.gz
which contains the final segmentation of gray/white/csf. (and not_pveseg.nii.gz
). Sample directory/home/chrispycheng/proj/nuisance/data/dbic/simple_workflow/sub-sid000278_ses-20170307X152148_acq-MPRAGE_T1w/segs