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 *);
66 virtual void ReadImageInformation();
69 virtual void Read(
void *buffer);
75 virtual bool CanWriteFile(
const char *);
78 virtual void WriteImageInformation();
82 virtual void Write(
const void *buffer);
86 void PrintSelf(std::ostream & os,
Indent indent)
const;
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;
115 #endif // __itkBMPImageIO_h
Light weight base class for most itk classes.
Read BMPImage file format.
Abstract superclass defines image IO interface.
unsigned short m_NumberOfColors
unsigned long m_BMPDataSize
unsigned int m_ColorTableSize
RGBPixel< unsigned char > RGBPixelType
std::vector< RGBPixelType > m_ColorPalette
::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