19#ifndef itkMGHImageIO_h
20#define itkMGHImageIO_h
27#include "MGHIOExport.h"
71 Read(
void * pData)
override;
90 Write(
const void * buffer)
override;
144 template <
typename TInType,
typename TDiskType>
147 template <
typename TDiskType,
typename TOutType>
152 TWrite(
const char * buf,
const unsigned long count);
Control indentation during Print() invocation.
static const int MRI_SHORT
std::string GetOrientation(itk::Matrix< double > directions)
bool CanReadFile(const char *FileNameToRead) override
void Write(const void *buffer) override
bool CanWriteFile(const char *name) override
int TWrite(const TInType inValue)
static const unsigned int FS_DIMENSION_HEADER_SIZE
static const int MRI_FLOAT
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int GetComponentSize() const override
void PermuteFrameValues(const void *buffer, char *tempmemory)
int TRead(TOutType &outValue)
SmartPointer< Self > Pointer
void SwapBytesIfNecessary(void *const buffer, const unsigned long numberOfPixels)
processes the actual data buffer
static const unsigned int FS_RAS_HEADER_SIZE
bool IsCompressedFilename(const std::string fname)
static const unsigned int FS_UNUSED_HEADER_SIZE
void ReadImageInformation() override
static const int MRI_UCHAR
static const int MRI_TENSOR
void WriteHeader()
examines the direction cosines and creates encapsulation data
int TWrite(const char *buf, const unsigned long count)
void WriteImageInformation() override
void WriteData(const void *buffer)
void Read(void *pData) override
static const unsigned int FS_WHOLE_HEADER_SIZE
A templated class holding a M x N size Matrix.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....