Inviwo  0.9.10.1
Inviwo documentation
inviwo::NiftiReader Class Reference

Volume data reader for Nifti-1 files. More...

#include <niftireader.h>

+ Inheritance diagram for inviwo::NiftiReader:

Public Types

using VolumeSequence = std::vector< std::shared_ptr< Volume > >
 

Public Member Functions

 NiftiReader (const NiftiReader &rhs)=default
 
NiftiReaderoperator= (const NiftiReader &that)=default
 
virtual NiftiReaderclone () const override
 
virtual std::shared_ptr< VolumeSequence > readData (const std::string &filePath) override
 
- Public Member Functions inherited from inviwo::DataReaderType< std::vector< std::shared_ptr< Volume > > >
 DataReaderType (const DataReaderType &rhs)=default
 
 DataReaderType (DataReaderType &&rhs) noexcept=default
 
DataReaderTypeoperator= (const DataReaderType &that)=default
 
DataReaderTypeoperator= (DataReaderType &&that) noexcept=default
 
virtual std::shared_ptr< std::vector< std::shared_ptr< Volume > > > readData (const std::string &filePath, MetaDataOwner *)
 
- Public Member Functions inherited from inviwo::DataReader
 DataReader (const DataReader &rhs)=default
 
 DataReader (DataReader &&rhs) noexcept=default
 
DataReaderoperator= (const DataReader &that)=default
 
DataReaderoperator= (DataReader &&that) noexcept=default
 
const std::vector< FileExtension > & getExtensions () const
 
void addExtension (FileExtension ext)
 

Static Public Member Functions

static const DataFormatBaseniftiDataTypeToInviwoDataFormat (int niftiDataType)
 Convert from Nifti defined data types to inviwo DataFormat. More...
 

Detailed Description

Volume data reader for Nifti-1 files.

Member Function Documentation

◆ niftiDataTypeToInviwoDataFormat()

const DataFormatBase * inviwo::NiftiReader::niftiDataTypeToInviwoDataFormat ( int  niftiDataType)
static

Convert from Nifti defined data types to inviwo DataFormat.

Parameters
niftiDataTypenifti_image::datatype.
Returns
Equivalent data type, null if not found.

◆ readData()

std::shared_ptr< NiftiReader::VolumeSequence > inviwo::NiftiReader::readData ( const std::string &  filePath)
overridevirtual

Returns the matrix transformation mapping from model space coordinates to voxel index coordinates, i.e. from (data min, data max) to [0, number of voxels)

Implements inviwo::DataReaderType< std::vector< std::shared_ptr< Volume > > >.


The documentation for this class was generated from the following files: