[−][src]Struct trk_io::CHeader
Fields
id_string: [u8; 6]
dim: [i16; 3]
voxel_size: [f32; 3]
origin: [f32; 3]
n_scalars: i16
scalar_name: [u8; 200]
n_properties: i16
property_name: [u8; 200]
vox_to_ras: [f32; 16]
reserved: [u8; 444]
voxel_order: [u8; 4]
pad2: [u8; 4]
image_orientation_patient: [f32; 6]
pad1: [u8; 2]
invert_x: u8
invert_y: u8
invert_z: u8
swap_x: u8
swap_y: u8
swap_z: u8
n_count: i32
version: i32
hdr_size: i32
Methods
impl CHeader
[src]
pub fn seek_n_count_field(f: &mut BufWriter<File>) -> Result<()>
[src]
pub fn clear_scalars(&mut self)
[src]
pub fn add_scalar(&mut self, name: &str) -> Result<()>
[src]
pub fn get_scalars_name(&self) -> Vec<String>
[src]
pub fn clear_properties(&mut self)
[src]
pub fn add_property(&mut self, name: &str) -> Result<()>
[src]
pub fn get_properties_name(&self) -> Vec<String>
[src]
pub fn get_affine_to_rasmm(&self) -> Affine4
[src]
Get affine mapping trackvis voxelmm space to RAS+ mm space
The streamlines in a trackvis file are in 'voxelmm' space, where the coordinates refer to the corner of the voxel.
Compute the affine matrix that will bring them back to RAS+ mm space, where the coordinates refer to the center of the voxel.
pub fn read_from_file(path: &str) -> Result<(CHeader, Endianness)>
[src]
pub fn read(reader: &mut BufReader<File>) -> Result<(CHeader, Endianness)>
[src]
pub fn write<W: WriteBytesExt>(&self, writer: &mut W) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl Send for CHeader
impl Sync for CHeader
impl Unpin for CHeader
impl UnwindSafe for CHeader
impl RefUnwindSafe for CHeader
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,