Struct nifti::object::InMemNiftiObject[][src]

pub struct InMemNiftiObject { /* fields omitted */ }

Data type for a NIFTI object that is fully contained in memory.

Methods

impl InMemNiftiObject
[src]

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::InMemNiftiObject;

let obj = InMemNiftiObject::from_file("minimal.nii.gz")?;

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.

Retrieve a NIFTI object from a stream of data.

Errors

  • NiftiError::NoVolumeData if the source only contains (or claims to contain) a header.

Trait Implementations

impl Debug for InMemNiftiObject
[src]

Formats the value using the given formatter. Read more

impl PartialEq for InMemNiftiObject
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for InMemNiftiObject
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl NiftiObject for InMemNiftiObject
[src]

The concrete type of the volume.

Obtain a reference to the NIFTI header.

Obtain a mutable reference to the NIFTI header.

Obtain a reference to the object's extensions.

Obtain a reference to the object's volume.

Move the volume out of the object, discarding the header and extensions. Read more

Auto Trait Implementations