nifti1_io
Classes | Macros | Typedefs | Functions | Variables
FSL_TYPE

FSL data format type codes. More...

Classes

struct  FSLIO
 High level data structure for open datasets in the fslio API. More...
 

Macros

#define FSL_TYPE_ANALYZE   0
 
#define FSL_TYPE_NIFTI   1
 
#define FSL_TYPE_NIFTI_PAIR   2
 
#define FSL_TYPE_MINC   4
 
#define FSL_TYPE_ANALYZE_GZ   100
 
#define FSL_TYPE_NIFTI_GZ   101
 
#define FSL_TYPE_NIFTI_PAIR_GZ   102
 
#define FSL_TYPE_MINC_GZ   104
 
#define FSL_RADIOLOGICAL   -1
 
#define FSL_NEUROLOGICAL   1
 

Typedefs

typedef unsigned char THIS_UINT8
 
typedef char THIS_INT8
 
typedef unsigned short THIS_UINT16
 
typedef short THIS_INT16
 
typedef unsigned int THIS_UINT32
 
typedef int THIS_INT32
 
typedef unsigned long THIS_UINT64
 
typedef long THIS_INT64
 
typedef float THIS_FLOAT32
 
typedef double THIS_FLOAT64
 

Functions

FSLIOFslOpen (const char *filename, const char *opts)
 Opens a file for either reading or writing. More...
 
FSLIOFslXOpen (const char *filename, const char *opts, int filetype)
 Opens a file for either reading or writing. More...
 
int FslSeekVolume (FSLIO *fslio, size_t vols)
 
int FslClose (FSLIO *fslio)
 Write header and image data if this dataset was open for writing. Close the dataset header and data files. More...
 
void * FslReadAllVolumes (FSLIO *fslio, char *filename)
 Read the header and all data into the FSLIO structure. More...
 
void FslWriteAllVolumes (FSLIO *fslio, const void *buffer)
 Writes all data from buffer (using size info from fslio) to file. More...
 
size_t FslReadVolumes (FSLIO *fslio, void *buffer, size_t nvols)
 Read the first nvols Volumes from a 4D dataset. More...
 
size_t FslWriteVolumes (FSLIO *fslio, const void *buffer, size_t nvols)
 Write the first nvols volumes in buffer to disk. More...
 
void FslWriteHeader (FSLIO *fslio)
 Writes nifti/anz header and opens img file ready for writing. More...
 
int FslFileExists (const char *filename)
 
char * FslMakeBaseName (const char *fname)
 
int FslCheckForMultipleFileNames (const char *filename)
 
int FslGetEnvOutputType (void)
 
void FslSetIgnoreMFQ (int flag)
 
int FslGetIgnoreMFQ (void)
 
void FslSetOverrideOutputType (int type)
 
int FslGetOverrideOutputType (void)
 
int FslGetFileType (const FSLIO *fslio)
 
void FslSetFileType (FSLIO *fslio, int filetype)
 
int FslIsSingleFileType (int filetype)
 
int FslIsCompressedFileType (int filetype)
 
int FslBaseFileType (int filetype)
 
const char * FslFileTypeString (int filetype)
 Return a string describing the format of the dataset. More...
 
int FslGetWriteMode (const FSLIO *fslio)
 
void FslSetWriteMode (FSLIO *fslio, int mode)
 
void AvwSwapHeader (struct dsr *avw)
 
int FslReadRawHeader (void *buffer, const char *filename)
 
FSLIOFslInit (void)
 allocate space for the FSLIO struct and set some sensible defaults More...
 
void FslInitHeader (FSLIO *fslio, short t, size_t x, size_t y, size_t z, size_t v, float vx, float vy, float vz, float tr, size_t dim)
 
void FslSetInit (FSLIO *fslio)
 
void FslCloneHeader (FSLIO *dest, const FSLIO *src)
 
size_t FslGetVolSize (FSLIO *fslio)