Vtk fiber bundle import from mrtrix and/or good format description of the slicer polydata fiber bundle format

Hi,
I was wondering if there is a good description of the vtk polydata format of the slicer fiber bundles?
I currently have the following problem: When I use MRtrix for fiber tracking and convert the tracts to vtk polydata, Slicer imports the data just fine BUT I cannot use FA or orientaion based coloring. I guess this is stored in some place with the polydata of the fibre bundles, but I cannot find any documantation form that. Can anybody give me a hint how I can properly import this and add this information to the fiber bundles, so I can user these color schemes? Maybe there is a conversion step I am missing?

Thanks

Andre

Hi Andre,

There are two options available.

  • The fiber bundle VTK files can store an ordered array of tensors in a VTK cell array, with one tensor corresponding to each point. The visualization pipeline within Slicer then calculates the property requested for display on-the-fly from the tensors.

    Each component of the cell array is a 9-tuple (9 elements), corresponding to the upper 9 components of the symmetric matrix representing the tensor.

    From a quick look at the thread below, I think MRtrix tools are available to sample scalars from images, not tensors, so such an export option may not be available. But, if you know how to get tensors from MRtrix and want to pursue this scheme, let me know and I’ll send more information about the format.

  • The second, probably simpler/tractable option, is to store pre-computed scalars, similarly in a polydata cell array, but this time with a single scalar value per point. After using the method detailed in the post above, the output text file could be loaded and added to the VTK as a cell array with (hopefully) a few lines of Python code.

Hi the FA can only be shown if tensors (or FA) are stored along the fibers. This data would have to come from MRtrix, but as far as I know it does not store tensors. The orientation coloring should still work, as that requires only the fibers. Did you go to Tractography Display and turn the color by orientation on?

1 Like