20 #ifndef MIRTK_ImageReader_H 21 #define MIRTK_ImageReader_H 23 #include "mirtk/Cifstream.h" 24 #include "mirtk/ImageAttributes.h" 25 #include "mirtk/BaseImage.h" 45 mirtkPublicAttributeMacro(
string,
FileName);
51 mirtkReadOnlyAttributeMacro(
int, DataType);
54 mirtkReadOnlyAttributeMacro(
int, Bytes);
57 mirtkReadOnlyAttributeMacro(
double, Slope);
60 mirtkReadOnlyAttributeMacro(
double, Intercept);
104 virtual bool CanRead(
const char *)
const = 0;
110 virtual void Print()
const;
129 #endif // MIRTK_ImageReader_H string FileName(const char *, ExtensionMode=EXT_Default)
Get file name of file path excl. file extension.
virtual BaseImage * Run()
int _ReflectZ
Flag whether to reflect Z axis.
static ImageReader * New(const char *)
virtual ~ImageReader()
Destructor.
virtual void Print() const
Print image header information.
int _ReflectY
Flag whether to reflect Y axis.
int _Start
Start of image data.
static ImageReader * TryNew(const char *)
int _ReflectX
Flag whether to reflect X axis.
virtual void Initialize()
Open image file and read header information.
virtual bool CanRead(const char *) const =0
Check if this reader can read a given image file.
virtual void ReadHeader()=0