I am new to DIPY and hoping to visualize streamlines (trk.gz or .trk files) that have been generated in DSI Studio.
It turns out that the header information may not be correct. When I check the trk files against a reference image I receive the following: HeaderError: Invalid hdr_size: [-150847129] instead of 1000
I know that there is code to resize or reformat the nifti header but is there a method to reformat the trk header as well? Or do I need to match the nifti header to the trk header? (the other way around)
Thank you for the response!! And rapid response at that!
The optimized trk loader ended up working for my purposes!
I wasn’t able to check trackvis though but the streamlines visible through DIPY programs was comparable to the visualization through DSI Studio. Thanks again!
Hi @Steven_Jay_Granger, I wrote the TRK parser in NiBabel (which is used by Dipy). Do you mind sharing the problematic .trk file with me, so I can have a look?
@Chris_Rorden since you mentioned Emnuaele’s loader, I’ve made a PR to Nibabel to improve TRK loading speed. I’d love to get feedback on it.