The trk-io
crate provides a TrackVis
__ (.trk) reader and writer.
__ http://www.trackvis.org/docs/?subsect=fileformat
TrackVis
files. Handles affine transformation as
nibabel.streamlines
and MI-Brain
__ would.nibabel.streamlines
.Reader
can read all streamlines at once or can be used as a generator.
Handles endianness.Follows nibabel.streamlines
architecture (all 3D points are in a single
Vec![Point3D]
). Currently, this is only useful for performance, but it may
lead to easier changes when and if we support BLAS.
__ https://www.imeka.ca/mi-brain
Streamlines::lengths
as it seems only offsets
is required.ops.Range
, e.g. streamlines[0..10]