CiftiLib
A C++ library for CIFTI-2 and CIFTI-1 files
Public Member Functions | Public Attributes | List of all members
cifti::NiftiHeader Struct Reference

Public Member Functions

void read (BinaryFile &inFile)
 
void write (BinaryFile &outFile, const int &version=1, const bool &swapEndian=false)
 
bool canWriteVersion (const int &version) const
 
bool isSwapped () const
 
int version () const
 
std::vector< int64_t > getDimensions () const
 
std::vector< std::vector< float > > getSForm () const
 
int64_t getDataOffset () const
 
int16_t getDataType () const
 
int32_t getIntentCode () const
 
const char * getIntentName () const
 
bool getDataScaling (double &mult, double &offset) const
 
AString toString () const
 
void setDimensions (const std::vector< int64_t > &dimsIn)
 
void setSForm (const std::vector< std::vector< float > > &sForm)
 
void setIntent (const int32_t &code, const char name[16])
 
void setDataType (const int16_t &type)
 
void clearDataScaling ()
 
void setDataScaling (const double &mult, const double &offset)
 
std::vector< std::vector< float > > getFSLSpace () const
 get the FSL "scale" space
 
bool operator== (const NiftiHeader &rhs) const
 
bool operator!= (const NiftiHeader &rhs) const
 

Public Attributes

std::vector< boost::shared_ptr< NiftiExtension > > m_extensions
 

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