18 #ifndef itkBMPImageIO_h
19 #define itkBMPImageIO_h
20 #include "ITKIOBMPExport.h"
58 itkGetConstMacro(FileLowerLeft,
bool);
61 itkGetConstMacro(BMPCompression,
long);
64 itkGetConstReferenceMacro(ColorPalette,
PaletteType);
70 bool CanReadFile(
const char *)
override;
73 void ReadImageInformation()
override;
76 void Read(
void *buffer)
override;
82 bool CanWriteFile(
const char *)
override;
85 void WriteImageInformation()
override;
89 void Write(
const void *buffer)
override;
93 void PrintSelf(std::ostream & os,
Indent indent)
const 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;
107 long m_BitMapOffset{ 0 };
108 bool m_FileLowerLeft{
false };
110 unsigned short m_NumberOfColors{ 0 };
111 unsigned int m_ColorPaletteSize{ 0 };
112 long m_BMPCompression{ 0 };
113 unsigned long m_BMPDataSize{ 0 };
118 #endif // itkBMPImageIO_h
Light weight base class for most itk classes.
Read BMPImage file format.
Abstract superclass defines image IO interface.
::itk::SizeValueType SizeValueType
Represent Red, Green and Blue components for color images.
PaletteType m_ColorPalette
Control indentation during Print() invocation.
std::vector< RGBPixelType > PaletteType
Base class for most ITK classes.