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