17 #ifndef RawImageFileReader_H_HEADER_INCLUDED
18 #define RawImageFileReader_H_HEADER_INCLUDED
19 #include "itkVector.h"
38 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
40 itkSetMacro(FileName, std::string);
41 itkSetStringMacro(FileName);
42 itkGetMacro(FileName, std::string);
43 itkGetStringMacro(FileName);
45 itkSetMacro(FilePrefix, std::string);
46 itkSetStringMacro(FilePrefix);
47 itkGetMacro(FilePrefix, std::string);
48 itkGetStringMacro(FilePrefix);
50 itkSetMacro(FilePattern, std::string);
51 itkSetStringMacro(FilePattern);
52 itkGetMacro(FilePattern, std::string);
53 itkGetStringMacro(FilePattern);
56 typedef enum { UCHAR, SCHAR,
USHORT, SSHORT, UINT, SINT, FLOAT, DOUBLE } IOPixelType;
60 typedef enum {
LITTLE, BIG } EndianityType;
61 itkSetMacro(Endianity, EndianityType);
63 itkSetMacro(Dimensionality,
int);
64 itkGetMacro(Dimensionality,
int);
67 void SetDimensions(
unsigned int i,
unsigned int dim);
69 unsigned int GetDimensions(
unsigned int i)
const;
71 static bool CanReadFile(
const std::string
filename,
const std::string filePrefix,
const std::string filePattern);
78 virtual void GenerateData()
override;
80 template <
typename TPixel,
unsigned int VImageDimensions>
81 void TypedGenerateData();
Superclass of all classes generating Images (instances of class Image) as output. ...
#define MITKLEGACYIO_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
itk::Vector< int, 3 > m_Dimensions
EndianityType m_Endianity
std::string m_FilePattern
Interface class of readers that read from files.
Reader to read raw image files.
Class for defining the data type of pixels.