Trait nifti::volume::FromSource[][src]

pub trait FromSource<R>: FromSourceOptions + Sized {
    fn from_reader(
        reader: R,
        header: &NiftiHeader,
        options: Self::Options
    ) -> Result<Self>
    where
        R: Read
; }
Expand description

Interface for constructing a volume instance from the given data source.

Required methods

Read a NIfTI volume from a stream of raw voxel data. The header and expected byte order of the volume’s data must be known in advance. It is also expected that the following bytes represent the first voxels of the volume (and not part of the extensions).

Implementors