18 #ifndef itkBMPImageIO_h
19 #define itkBMPImageIO_h
20 #include "ITKIOBMPExport.h"
54 itkGetConstMacro(FileLowerLeft,
bool);
57 itkGetConstMacro(BMPCompression,
long);
63 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
66 virtual
void ReadImageInformation() ITK_OVERRIDE;
69 virtual
void Read(
void *buffer) ITK_OVERRIDE;
75 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
78 virtual
void WriteImageInformation() ITK_OVERRIDE;
82 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
86 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
90 void operator=(const Self &);
92 void SwapBytesIfNecessary(
void *buffer,
SizeValueType numberOfPixels);
95 void Write32BitsInteger(
unsigned int value);
97 void Write16BitsInteger(
unsigned short value);
99 RGBPixelType GetColorPaletteEntry(const
unsigned char entry) const;
101 std::ifstream m_Ifstream;
102 std::ofstream m_Ofstream;
104 bool m_FileLowerLeft;
107 unsigned short m_NumberOfColors;
108 unsigned int m_ColorTableSize;
109 long m_BMPCompression;
110 unsigned long m_BMPDataSize;
115 #endif // itkBMPImageIO_h
Light weight base class for most itk classes.
Read BMPImage file format.
Abstract superclass defines image IO interface.
RGBPixel< unsigned char > RGBPixelType
::itk::SizeValueType SizeValueType
Represent Red, Green and Blue components for color images.
Control indentation during Print() invocation.
Base class for most ITK classes.
SmartPointer< Self > Pointer