trk_io/
lib.rs

1pub mod affine;
2mod array_sequence;
3mod cheader;
4mod header;
5pub mod orientation;
6mod reader;
7mod tractogram;
8mod vs_reader;
9mod writer;
10
11use byteorder::LittleEndian;
12use nalgebra::{Matrix3, Matrix4, Vector3};
13
14pub use array_sequence::ArraySequence;
15pub use cheader::CHeader;
16pub use header::Header;
17pub use reader::{Reader, StreamlinesIter};
18pub use tractogram::{Point, Points, Streamlines, Tractogram, TractogramItem};
19pub use vs_reader::VoxelSpaceReader;
20pub use writer::Writer;
21
22pub type Affine = Matrix3<f32>;
23pub type Affine4 = Matrix4<f32>;
24pub type Spacing = Vector3<f32>;
25pub type Translation = Vector3<f32>;
26
27/// trk-io will always write trk in LE, but it wll also try BE when reading
28type TrkEndianness = LittleEndian;