View source: R/vis_dti_tracks.R
vis.dti.trk | R Documentation |
Visualize DTI tracks from Diffusion Toolkit/TrackVis TRK format file.
vis.dti.trk(
trk,
filter_tracks = list(min_length = 15, min_segment_count = 6),
color_by_orientation = FALSE
)
trk |
character string, the path to a TRK file that should be loaded. Alternatively, a loaded |
filter_tracks |
optional, named list of filters. Can contain fields |
color_by_orientation |
logical, whether to color the tracks by orientation. Slower, but may make the resulting visualization easier to interprete. |
The (loaded or received) trk
instance. Note that this function is typically called for the side effect of visualization.
The current simple implementation is very slow if the number of tracks becomes large (several thousand tracks).
## Not run:
# Create the following file with Diffusion Toolkit from your DTI data:
trk = freesurferformats::read.dti.trk("~/data/tim_only/tim/DICOM/dti.trk");
vis.dti.trk(trk);
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.