18#ifndef itkBMPImageIO_h
19#define itkBMPImageIO_h
20#include "ITKIOBMPExport.h"
59 itkGetConstMacro(FileLowerLeft,
bool);
62 itkGetConstMacro(BMPCompression,
long);
80 Read(
void * buffer)
override;
96 Write(
const void * buffer)
override;
117 std::ifstream m_Ifstream{};
118 std::ofstream m_Ofstream{};
119 long m_BitMapOffset{ 0 };
120 bool m_FileLowerLeft{
false };
122 unsigned short m_NumberOfColors{ 0 };
123 unsigned int m_ColorPaletteSize{ 0 };
124 long m_BMPCompression{ 0 };
125 unsigned long m_BMPDataSize{ 0 };
Read BMPImage file format.
void Write32BitsInteger(unsigned int value)
RGBPixelType GetColorPaletteEntry(const unsigned char entry) const
void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels)
void ReadImageInformation() override
void Write16BitsInteger(unsigned short value)
void Read(void *buffer) override
bool CanReadFile(const char *) override
void WriteImageInformation() override
void Write(const void *buffer) override
bool CanWriteFile(const char *) override
void PrintSelf(std::ostream &os, Indent indent) const override
std::vector< RGBPixelType > PaletteType
Abstract superclass defines image IO interface.
itk::SizeValueType SizeValueType
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
Represent Red, Green and Blue components for color images.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....