daducci / COMMIT

Linear framework to combine tractography and tissue micro-structure estimation with diffusion MRI
Other
43 stars 33 forks source link

Fix trk2dictionary affine bug for TCK tractograms #99

Closed MarioOcampo closed 3 years ago

MarioOcampo commented 3 years ago

Create dictionary_mask.nii.gz and dictionary_tdi.nii.gz with affine from TCK_ref_image for TCK tractograms.

This PR fixes the problem for TCK tractograms. In the case of TRK, the problem persists if a mask or peaks file is not specified.

daducci commented 3 years ago

When you say "the problem persists" you mean that the identity matrix is used as affine? I see that you added a warning, well done!

MarioOcampo commented 3 years ago

Yes, for TRK tractograms, if there is no mask or peaks image specified, it uses the identity as affine.

daducci commented 3 years ago

We should change the order of files that are searched for when looking for an affine, in the case of TCK. In fact, now, this order is different from the one done for TRK.