In the FBA analysis, I noticed that the group-space mask template generated by the command mrmath ${m} min ../group/template_mask.mif -datatype bit is one circle smaller than the group-space FOD template. Later, I checked each individual mask registered to the FOD template and found that some registrations are good while others are poor. Is it possible to remove the individual masks with poor registrations?
code:
for_each * : mrregister IN/wmfod_norm.mif -mask1 IN/dwi_mask_upsampled.mif ../template/wmfod_template.mif -nl_warp IN/subject2template_warp.mif IN/template2subject_warp.mif
for_each * : mrtransform IN/dwi_mask_upsampled.mif -warp IN/subject2template_warp.mif -interp nearest -datatype bit IN/dwi_mask_in_template_space.mif
mrmath */dwi_mask_in_template_space.mif min ../template/template_mask.mif -datatype bit
