|
ITK
6.0.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 = (static_cast<unsigned short>(val));
152 CanWriteFile(
const char *)
override;
163 Write(
const void * buffer)
override;
169 PrintSelf(std::ostream & os,
Indent indent)
const override;
174 std::string m_InternalFileName{};
176 unsigned long m_FileDimensionality{};
177 bool m_ManualHeaderSize{};
179 unsigned short m_ImageMask{};
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.
itk::SizeValueType SizeValueType
void WriteImageInformation() override
void ReadImageInformation() override
typename PixelTraits< PixelType >::ValueType ComponentType
Control indentation during Print() invocation.
#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
Perform machine dependent byte swapping.
virtual void ReadHeader(const std::string=std::string())
void SetImageMask(unsigned long val)
typename TPixelType::ValueType ValueType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Base class for most ITK classes.
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