18 #ifndef itkRawImageIO_h
19 #define itkRawImageIO_h
47 template<
typename TPixel,
unsigned int VImageDimension = 2 >
84 itkSetMacro(FileDimensionality,
unsigned long);
85 itkGetConstMacro(FileDimensionality,
unsigned long);
101 virtual bool CanReadFile(
const char *) ITK_OVERRIDE {
return false; }
108 virtual void Read(
void *buffer) ITK_OVERRIDE;
111 itkGetConstReferenceMacro(ImageMask,
unsigned short);
121 virtual void ReadHeader(
const std::string = std::string() ) {}
134 virtual void Write(
const void *buffer) ITK_OVERRIDE;
139 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
155 template<
typename TPixel,
unsigned int VImageDimension >
173 return "Raw ImageIO Factory, allows the loading of Raw images into insight";
177 itkFactorylessNewMacro(
Self);
200 #ifndef ITK_MANUAL_INSTANTIATION
201 #include "itkRawImageIO.hxx"
unsigned long m_FileDimensionality
Superclass::SizeValueType SizeValueType
Light weight base class for most itk classes.
virtual bool CanReadFile(const char *) override
TPixelType::ValueType ValueType
#define ITK_SOURCE_VERSION
void operator=(const Self &)
SmartPointer< Self > Pointer
Abstract superclass defines image IO interface.
virtual void Read(void *buffer) override
SmartPointer< const Self > ConstPointer
ObjectFactoryBase Superclass
Create instances of classes using an object factory.
virtual const char * GetDescription(void) const override
std::string m_InternalFileName
unsigned short m_ImageMask
RawImageIO< TPixel, VImageDimension > myProductType
SmartPointer< Self > Pointer
const myProductType * m_MyProduct
ByteSwapper< ComponentType > ByteSwapperType
void SetHeaderSize(SizeValueType size)
SizeValueType GetHeaderSize()
RawImageIOFactory< TPixel, VImageDimension > Self
::itk::SizeValueType SizeValueType
virtual bool SupportsDimension(unsigned long dim) override
void operator=(const Self &)
virtual void Modified() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
static void RegisterOneFactory(void)
SizeValueType m_HeaderSize
virtual bool CanWriteFile(const char *) override
Read and write raw binary images.
virtual const char * GetITKSourceVersion(void) const override
virtual void Write(const void *buffer) override
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
void SetImageMask(unsigned long val)
Control indentation during Print() invocation.
PixelTraits< PixelType >::ValueType ComponentType
virtual void ReadHeader(const std::string=std::string())
virtual void ReadImageInformation() override
Perform machine dependent byte swapping.
virtual void WriteImageInformation(void) override