18 #ifndef itkPNGImageIO_h
19 #define itkPNGImageIO_h
20 #include "ITKIOPNGExport.h"
56 itkSetMacro(CompressionLevel,
int);
57 itkGetConstMacro(CompressionLevel,
int);
63 itkGetConstReferenceMacro(ColorPalette,
PaletteType);
69 bool CanReadFile(
const char *)
override;
72 void ReadImageInformation()
override;
75 void Read(
void *buffer)
override;
78 virtual void ReadVolume(
void *buffer);
84 bool CanWriteFile(
const char *)
override;
88 void WriteImageInformation()
override;
92 void Write(
const void *buffer)
override;
97 void PrintSelf(std::ostream & os,
Indent indent)
const override;
99 void WriteSlice(
const std::string & fileName,
const void *buffer);
103 int m_CompressionLevel{ 4 };
109 #endif // itkPNGImageIO_h
Light weight base class for most itk classes.
Abstract superclass defines image IO interface.
ImageIO object for reading and writing PNG images.
PaletteType m_ColorPalette
std::vector< RGBPixelType > PaletteType
Represent Red, Green and Blue components for color images.
Control indentation during Print() invocation.
Base class for most ITK classes.