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

extern crate byteorder;
#[cfg(feature = "use_nifti")] extern crate nifti;
extern crate nalgebra;

pub mod affine;
mod array_sequence;
mod cheader;
mod header;
pub mod orientation;
mod reader;
mod writer;

use nalgebra::{Matrix3, Matrix4, Point3, Vector3};
pub use array_sequence::ArraySequence;
pub use cheader::CHeader;
pub use header::Header;
pub use reader::Reader;
pub use writer::Writer;

pub type Point = Point3<f32>;
pub type Points = Vec<Point>;
pub type Affine = Matrix3<f32>;
pub type Affine4 = Matrix4<f32>;
pub type Translation = Vector3<f32>;
pub type Streamlines = ArraySequence<Point>;