18#ifndef itkJPEGImageIO_h
19#define itkJPEGImageIO_h
20#include "ITKIOJPEGExport.h"
59 this->SetCompressionLevel(_JPEGQuality);
64 return this->GetCompressionLevel();
69 itkSetMacro(Progressive,
bool);
70 itkGetConstMacro(Progressive,
bool);
71 itkBooleanMacro(Progressive);
75 itkSetMacro(CMYKtoRGB,
bool);
76 itkGetConstMacro(CMYKtoRGB,
bool);
77 itkBooleanMacro(CMYKtoRGB);
93 Read(
void * buffer)
override;
114 Write(
const void * buffer)
override;
123 WriteSlice(
const std::string & fileName,
const void *
const buffer);
125 bool m_Progressive{
true };
127 bool m_CMYKtoRGB{
true };
129 bool m_IsCMYK{
false };
Abstract superclass defines image IO interface.
Control indentation during Print() invocation.
ImageIO object for reading and writing JPEG images.
void PrintSelf(std::ostream &os, Indent indent) const override
virtual int GetQuality() const
virtual void ReadVolume(void *buffer)
bool CanWriteFile(const char *) override
void ReadImageInformation() override
bool CanReadFile(const char *) override
void Write(const void *buffer) override
void WriteImageInformation() override
virtual void SetQuality(int _JPEGQuality)
void WriteSlice(const std::string &fileName, const void *const buffer)
void Read(void *buffer) override
Light weight base class for most itk classes.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....