Hi, Yasir-
Ah, I see now-- these 2 options lead to the anat being segmented with 3dSeg, which creates known tissue-class names (WM, CSF, etc.), and then those masks are eroded (again with known labels applied: WMe, CSFe, etc.):
-mask_segment_anat yes \
-mask_segment_erode yes \
What is the actual error that you are getting?
And what specifically did you do to get your ventricle mask? Does its grid match the resampled volreg dataset?
--pt