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);
108 virtual void Read(
void *buffer);
111 itkGetConstReferenceMacro(ImageMask,
unsigned short);
121 virtual void ReadHeader(
const std::string = std::string() ) {}
134 virtual void Write(
const void *buffer);
158 template<
typename TPixel,
unsigned int VImageDimension >
176 return "Raw ImageIO Factory, allows the loading of Raw images into insight";
180 itkFactorylessNewMacro(
Self);
203 #ifndef ITK_MANUAL_INSTANTIATION
204 #include "itkRawImageIO.hxx"
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
virtual bool SupportsDimension(unsigned long dim)
Abstract superclass defines image IO interface.
void OpenFileForReading(std::ifstream &is)
const char * GetITKSourceVersion(void) const
virtual void Read(void *buffer)
virtual void ReadImageInformation()
SmartPointer< const Self > ConstPointer
ObjectFactoryBase Superclass
Create instances of classes using an object factory.
void PrintSelf(std::ostream &os, Indent indent) const
std::string m_InternalFileName
unsigned short m_ImageMask
RawImageIO< TPixel, VImageDimension > myProductType
SmartPointer< Self > Pointer
virtual void WriteImageInformation(void)
const myProductType * m_MyProduct
ByteSwapper< ComponentType > ByteSwapperType
void SetHeaderSize(SizeValueType size)
SizeValueType GetHeaderSize()
void OpenFileForWriting(std::ofstream &os)
virtual void Write(const void *buffer)
RawImageIOFactory< TPixel, VImageDimension > Self
::itk::SizeValueType SizeValueType
void operator=(const Self &)
virtual void Modified() const
static void RegisterOneFactory(void)
SizeValueType m_HeaderSize
virtual bool CanWriteFile(const char *)
const char * GetDescription(void) const
Read and write raw binary images.
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())
Perform machine dependent byte swapping.
virtual bool CanReadFile(const char *)