18 #ifndef itkMGHImageIO_h
19 #define itkMGHImageIO_h
59 virtual bool CanReadFile(
const char *FileNameToRead) ITK_OVERRIDE;
65 virtual
void Read(
void *buffer) ITK_OVERRIDE;
74 virtual
bool CanWriteFile(const
char *FileNameToWrite) ITK_OVERRIDE;
81 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
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.
virtual void ReadImageInformation() override
static const unsigned int FS_RAS_HEADER_SIZE
Light weight base class for most itk classes.
virtual void Write(const void *buffer) override
Abstract superclass defines image IO interface.
static const int MRI_UCHAR
static const unsigned int FS_UNUSED_HEADER_SIZE
SmartPointer< Self > Pointer
void SwapBytesIfNecessary(void *const buffer, const unsigned long numberOfPixels)
processes the actual data buffer
static const int MRI_SHORT
void WriteHeader()
examines the direction cosines and creates encapsulation data
static const int MRI_FLOAT
void WriteData(const void *buffer)
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 CanWriteFile(const char *FileNameToWrite) override
virtual void WriteImageInformation() override
unsigned int GetComponentSize() const override
Control indentation during Print() invocation.
void PermuteFrameValues(const void *buffer, char *tempmemory)
static const int MRI_TENSOR
virtual bool CanReadFile(const char *FileNameToRead) override
virtual void Read(void *buffer) override
std::string GetOrientation(itk::Matrix< double > directions)
Base class for most ITK classes.
static const unsigned int FS_WHOLE_HEADER_SIZE
void PrintSelf(std::ostream &os, Indent indent) const override