18 #ifndef itkRawImageIO_h
19 #define itkRawImageIO_h
47 template<
typename TPixel,
unsigned int VImageDimension = 2 >
86 itkSetMacro(FileDimensionality,
unsigned long);
87 itkGetConstMacro(FileDimensionality,
unsigned long);
96 {
return ( dim == m_FileDimensionality ); }
110 void Read(
void *buffer)
override;
113 itkGetConstReferenceMacro(ImageMask,
unsigned short);
116 if ( val == m_ImageMask ) {
return; }
117 m_ImageMask = ( (
unsigned short)( val ) );
123 virtual void ReadHeader(
const std::string = std::string() ) {}
130 bool CanWriteFile(
const char *)
override;
136 void Write(
const void *buffer)
override;
141 void PrintSelf(std::ostream & os,
Indent indent)
const override;
154 template<
typename TPixel,
unsigned int VImageDimension >
174 return "Raw ImageIO Factory, allows the loading of Raw images into insight";
178 itkFactorylessNewMacro(Self);
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkRawImageIO.hxx"
unsigned long m_FileDimensionality
bool SupportsDimension(unsigned long dim) override
Light weight base class for most itk classes.
const char * GetITKSourceVersion() const override
#define ITK_SOURCE_VERSION
Abstract superclass defines image IO interface.
unsigned long SizeValueType
void ReadImageInformation() override
typename PixelTraits< PixelType >::ValueType ComponentType
Create instances of classes using an object factory.
std::string m_InternalFileName
unsigned short m_ImageMask
typename TPixelType::ValueType ValueType
::itk::SizeValueType SizeValueType
const myProductType * m_MyProduct
SizeValueType m_HeaderSize
bool CanReadFile(const char *) override
Read and write raw binary images.
static void RegisterOneFactory()
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
void SetImageMask(unsigned long val)
Control indentation during Print() invocation.
virtual void ReadHeader(const std::string=std::string())
Base class for most ITK classes.
Perform machine dependent byte swapping.
void WriteImageInformation() override
const char * GetDescription() const override