18#ifndef itkRawImageIO_h
19#define itkRawImageIO_h
48template <
typename TPixel,
unsigned int VImageDimension = 2>
89 itkSetMacro(FileDimensionality,
unsigned long);
90 itkGetConstMacro(FileDimensionality,
unsigned long);
101 return (dim == m_FileDimensionality);
128 itkGetConstReferenceMacro(ImageMask,
unsigned short);
132 if (val == m_ImageMask)
136 m_ImageMask = (
static_cast<unsigned short>(val));
163 Write(
const void * buffer)
override;
174 std::string m_InternalFileName{};
176 unsigned long m_FileDimensionality{};
177 bool m_ManualHeaderSize{};
179 unsigned short m_ImageMask{};
182template <
typename TPixel,
unsigned int VImageDimension>
204 return "Raw ImageIO Factory, allows the loading of Raw images into insight";
226#ifndef ITK_MANUAL_INSTANTIATION
227# include "itkRawImageIO.hxx"
Perform machine dependent byte swapping.
Abstract superclass defines image IO interface.
itk::SizeValueType SizeValueType
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Create instances of classes using an object factory.
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionEnum where=InsertionPositionEnum::INSERT_AT_BACK, vcl_size_t position=0)
Base class for most ITK classes.
typename TPixelType::ValueType ValueType
const char * GetDescription() const override
~RawImageIOFactory() override=default
const char * GetITKSourceVersion() const override
static void RegisterOneFactory()
RawImageIOFactory()=default
Read and write raw binary images.
void Write(const void *buffer) override
SizeValueType GetHeaderSize()
typename PixelTraits< PixelType >::ValueType ComponentType
void PrintSelf(std::ostream &os, Indent indent) const override
void SetImageMask(unsigned long val)
virtual void ReadHeader(const std::string=std::string())
void ReadImageInformation() override
bool SupportsDimension(unsigned long dim) override
bool CanReadFile(const char *) override
void Read(void *buffer) override
void WriteImageInformation() override
~RawImageIO() override=default
bool CanWriteFile(const char *) override
void SetHeaderSize(SizeValueType size)
#define ITK_SOURCE_VERSION
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType