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"
virtual const char * GetDescription(void) const ITK_OVERRIDE
unsigned long m_FileDimensionality
Superclass::SizeValueType SizeValueType
Light weight base class for most itk classes.
TPixelType::ValueType ValueType
#define ITK_SOURCE_VERSION
void operator=(const Self &)
SmartPointer< Self > Pointer
Abstract superclass defines image IO interface.
virtual bool CanWriteFile(const char *) ITK_OVERRIDE
SmartPointer< const Self > ConstPointer
ObjectFactoryBase Superclass
Create instances of classes using an object factory.
std::string m_InternalFileName
unsigned short m_ImageMask
virtual void ReadImageInformation() ITK_OVERRIDE
virtual const char * GetITKSourceVersion(void) const ITK_OVERRIDE
RawImageIO< TPixel, VImageDimension > myProductType
SmartPointer< Self > Pointer
const myProductType * m_MyProduct
virtual bool CanReadFile(const char *) ITK_OVERRIDE
ByteSwapper< ComponentType > ByteSwapperType
void SetHeaderSize(SizeValueType size)
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
SizeValueType GetHeaderSize()
virtual void Write(const void *buffer) ITK_OVERRIDE
RawImageIOFactory< TPixel, VImageDimension > Self
::itk::SizeValueType SizeValueType
void operator=(const Self &)
virtual void Modified() const
static void RegisterOneFactory(void)
SizeValueType m_HeaderSize
virtual void WriteImageInformation(void) ITK_OVERRIDE
Read and write raw binary images.
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
virtual bool SupportsDimension(unsigned long dim) ITK_OVERRIDE
void SetImageMask(unsigned long val)
Control indentation during Print() invocation.
PixelTraits< PixelType >::ValueType ComponentType
virtual void ReadHeader(const std::string=std::string())
virtual void Read(void *buffer) ITK_OVERRIDE
Perform machine dependent byte swapping.