[−][src]Struct nifti::object::ReaderOptions
Options and flags which can be used to configure how a NIfTI image is read.
Implementations
impl ReaderOptions
[src]
pub fn new() -> ReaderOptions
[src]
Creates a blank new set of options ready for configuration.
All options are initially set to false
.
pub fn fix_header(&mut self, fix_header: bool) -> &mut Self
[src]
Sets the options to fix some known header problems.
pub fn read_file<P>(&self, path: P) -> Result<InMemNiftiObject> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Retrieve the full contents of a NIFTI object.
The given file system path is used as reference. If the file only contains the header, this method will look for the corresponding file with the extension ".img", or ".img.gz" if the former wasn't found.
Example
use nifti::{NiftiObject, ReaderOptions}; let obj = ReaderOptions::new().read_file("minimal.nii.gz")?;
pub fn read_file_pair<P, Q>(
&self,
hdr_path: P,
vol_path: Q
) -> Result<InMemNiftiObject> where
P: AsRef<Path>,
Q: AsRef<Path>,
[src]
&self,
hdr_path: P,
vol_path: Q
) -> Result<InMemNiftiObject> where
P: AsRef<Path>,
Q: AsRef<Path>,
Retrieve a NIFTI object as separate header and volume files.
This method is useful when file names are not conventional for a NIFTI file pair.
Trait Implementations
impl Clone for ReaderOptions
[src]
fn clone(&self) -> ReaderOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReaderOptions
[src]
impl PartialEq<ReaderOptions> for ReaderOptions
[src]
fn eq(&self, other: &ReaderOptions) -> bool
[src]
fn ne(&self, other: &ReaderOptions) -> bool
[src]
impl StructuralPartialEq for ReaderOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReaderOptions
impl Send for ReaderOptions
impl Sync for ReaderOptions
impl Unpin for ReaderOptions
impl UnwindSafe for ReaderOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,