Visualize DTI tensor image


I have a NIFTI file with estimated DTI tensors consisting of 6 volumes (for each element of the diffusion tensor). I used “vtkNIFTIImageReader” with “TimeAsVectorOn” and received the image data, whereby the point data has 6 components.

How can I use “vtkStreamTracer” to show some fibers? I know that I need a vector field, but I could not figure out how to create it from from the data I have.

Any ideas?

Thank you!


You might want to have a look at the existing VTK filters that compute the tensors eigenvectors:

The HyperStreamlines example might also be of interest to you:

Note also that vtkMath offers functions to convert symmetric tensors (6-components) to 9-component tensors.