18 #ifndef itkBMPImageIO_h
19 #define itkBMPImageIO_h
20 #include "ITKIOBMPExport.h"
56 itkGetConstMacro(FileLowerLeft,
bool);
59 itkGetConstMacro(BMPCompression,
long);
62 itkGetConstReferenceMacro(ColorPalette,
PaletteType);
68 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
71 virtual
void ReadImageInformation() ITK_OVERRIDE;
74 virtual
void Read(
void *buffer) ITK_OVERRIDE;
80 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
83 virtual
void WriteImageInformation() ITK_OVERRIDE;
87 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
91 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
96 void SwapBytesIfNecessary(
void *buffer,
SizeValueType numberOfPixels);
99 void Write32BitsInteger(
unsigned int value);
101 void Write16BitsInteger(
unsigned short value);
103 RGBPixelType GetColorPaletteEntry(const
unsigned char entry) const;
105 std::ifstream m_Ifstream;
106 std::ofstream m_Ofstream;
108 bool m_FileLowerLeft;
110 unsigned short m_NumberOfColors;
111 unsigned int m_ColorPaletteSize;
112 long m_BMPCompression;
113 unsigned long m_BMPDataSize;
118 #endif // itkBMPImageIO_h
Light weight base class for most itk classes.
Read BMPImage file format.
Abstract superclass defines image IO interface.
std::vector< RGBPixelType > PaletteType
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