Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anterior-Posterior flipping of Trackvis tractogram #21

Open
Paolopost opened this issue Nov 17, 2017 · 2 comments
Open

Anterior-Posterior flipping of Trackvis tractogram #21

Paolopost opened this issue Nov 17, 2017 · 2 comments
Labels

Comments

@Paolopost
Copy link
Member

Paolopost commented Nov 17, 2017

When Trackvis save a trk tractogram it doesn't preserve the original sagittal orientation and might introduce a flipping of y orientation.

If the source trk file is in LAP orientation, trackvis stores the saved trk with LPS orientation. The side effect is that the affine stored in the header of trk is no more compliant with the orientation of the original reference structural image.
Currently tractome doesn't check the information concerned the proper orientation stored in the header. The field of the header where this information is stored is "pad2"

To replicate this issue it is enough to load in trackvis a tract as trk file generated with dipy or mrtrix with either radiological (RAS) or neurological (LAS) orientation. Better if you choose as test example, a tract that is not symmetric with respect the y axis. Then save the tract as trk. Load this new trk file with tractome. The new tract will look flipped along the y axis.

@Paolopost Paolopost added the bug label Nov 17, 2017
@Paolopost
Copy link
Member Author

The same issue holds if you load the tractogram with mrview.

@emanuele
Copy link
Member

Could you test it again? I think that the last commit may have solved this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants