1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
extern crate byteorder;
extern crate nalgebra;
#[cfg(feature = "use_nifti")]
extern crate nifti;

pub mod affine;
#[cfg(feature = "use_nifti")]
pub mod affine_nifti;
mod array_sequence;
mod cheader;
mod header;
pub mod orientation;
mod reader;
mod tractogram;
mod writer;

use byteorder::LittleEndian;
use nalgebra::{Matrix3, Matrix4, Vector3};

pub use array_sequence::ArraySequence;
pub use cheader::CHeader;
pub use header::Header;
pub use reader::Reader;
pub use tractogram::{Point, Points, Streamlines, Tractogram, TractogramItem};
pub use writer::Writer;

pub type Affine = Matrix3<f32>;
pub type Affine4 = Matrix4<f32>;
pub type Translation = Vector3<f32>;

/// trk-io will always write trk in LE, but it wll also try BE when reading
type TrkEndianness = LittleEndian;