18 #ifndef __itkTIFFImageIO_h
19 #define __itkTIFFImageIO_h
20 #include "ITKIOTIFFExport.h"
28 class TIFFReaderInternal;
61 virtual bool CanReadFile(
const char *) ITK_OVERRIDE;
64 virtual
void ReadImageInformation() ITK_OVERRIDE;
67 virtual
void Read(
void *buffer) ITK_OVERRIDE;
70 virtual
void ReadVolume(
void *buffer);
73 virtual
void ReadTiles(
void *buffer);
79 virtual
bool CanWriteFile(const
char *) ITK_OVERRIDE;
83 virtual
void WriteImageInformation() ITK_OVERRIDE;
87 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
89 enum { NOFORMAT,
RGB_, GRAYSCALE, PALETTE_RGB, PALETTE_GRAYSCALE, OTHER };
112 m_Compression = compression;
118 if ( compression == NoCompression )
120 this->SetUseCompression(
false);
124 this->SetUseCompression(
true);
131 itkSetClampMacro(JPEGQuality,
int, 1, 100);
132 itkGetConstMacro(JPEGQuality,
int);
138 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
140 void InternalWrite(
const void *buffer);
142 void InitializeColors();
144 void ReadGenericImage(
void *out,
145 unsigned int itkNotUsed(width),
146 unsigned int height);
149 void ReadTwoSamplesPerPixelImage(
void *out,
150 unsigned int itkNotUsed(width),
151 unsigned int height);
153 int EvaluateImageAt(
void *out,
void *in);
155 unsigned int GetFormat();
157 void GetColor(
int index,
unsigned short *red,
158 unsigned short *green,
unsigned short *blue);
161 bool CanFindTIFFTag(
unsigned int t);
164 void * ReadRawByteFromTag(
unsigned int t,
unsigned int & value_count);
173 void operator=(
const Self &);
183 #endif // __itkTIFFImageIO_h
Light weight base class for most itk classes.
void SetCompressionToLZW()
Abstract superclass defines image IO interface.
ImageIO object for reading and writing TIFF images.
void SetCompression(int compression)
void SetCompressionToDeflate()
unsigned short * m_ColorGreen
void SetCompressionToNoCompression()
TIFFReaderInternal * m_InternalImage
unsigned short * m_ColorRed
void SetCompressionToJPEG()
unsigned short * m_ColorBlue
unsigned int m_ImageFormat
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
void SetCompressionToPackBits()