18 #ifndef __itkMGHImageIO_h
19 #define __itkMGHImageIO_h
59 virtual bool CanReadFile(
const char *FileNameToRead);
65 virtual void Read(
void *buffer);
81 virtual void Write(
const void *buffer);
125 template <
class T>
int TWrite(T out);
126 template <
class T>
int TRead(T &out);
128 int TWrite(
const char *buf,
unsigned long count);
134 #endif // __itkMGHImageIO_h
static const unsigned int FS_DIMENSION_HEADER_SIZE
A templated class holding a M x N size Matrix.
static const unsigned int FS_RAS_HEADER_SIZE
Light weight base class for most itk classes.
virtual void Write(const void *buffer)
unsigned int GetComponentSize() const
Abstract superclass defines image IO interface.
static const int MRI_UCHAR
static const unsigned int FS_UNUSED_HEADER_SIZE
virtual void WriteImageInformation()
SmartPointer< Self > Pointer
void SwapBytesIfNecessary(void *const buffer, const unsigned long numberOfPixels)
processes the actual data buffer
static const int MRI_SHORT
virtual void ReadImageInformation()
void WriteHeader()
examines the direction cosines and creates encapsulation data
virtual void Read(void *buffer)
void PrintSelf(std::ostream &os, Indent indent) const
static const int MRI_FLOAT
void WriteData(const void *buffer)
virtual bool CanWriteFile(const char *FileNameToWrite)
Class that defines how to read MGH file format. Originally developed as part of the Slicer software p...
bool IsCompressedFilename(const std::string fname)
virtual bool CanReadFile(const char *FileNameToRead)
Control indentation during Print() invocation.
void PermuteFrameValues(const void *buffer, char *tempmemory)
static const int MRI_TENSOR
std::string GetOrientation(itk::Matrix< double > directions)
Base class for most ITK classes.
static const unsigned int FS_WHOLE_HEADER_SIZE