MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
294 stars 181 forks source link

dwi2response: -shells affects brain masking #2963

Open Lestropie opened 3 months ago

Lestropie commented 3 months ago

Discovered by change while checking feasibility of [comment in #2960] (https://github.com/MRtrix3/mrtrix3/issues/2960#issuecomment-2288100774), due to dwishellmath warning added in #2288 and dwi2mask changes in #2197. Should not be affecting 3.0.x.

The dwi2response interface command applies shell selection during DWI data import, and then uses that image for brain mask derivation if necessary. This means that for algorithms like dwi2response tournier and dwi2response tax, which explicitly strip from the imported DWI data all shells that will not be included in the exemplar voxel selection / response function, that stripped DWI data is also being used for brain mask estimation. This could be particularly problematic if, for instance, a user were to nominate some preferred default brain masking algorithm that is explicitly designed to work on b=0 images.

So either: