18 #ifndef __itkTIFFImageIO_h
19 #define __itkTIFFImageIO_h
27 class TIFFReaderInternal;
60 virtual bool CanReadFile(
const char *);
63 virtual void ReadImageInformation();
66 virtual void Read(
void *buffer);
69 virtual void ReadVolume(
void *buffer);
72 virtual void ReadTiles(
void *buffer);
78 virtual bool CanWriteFile(
const char *);
82 virtual void WriteImageInformation();
86 virtual void Write(
const void *buffer);
88 enum { NOFORMAT,
RGB_, GRAYSCALE, PALETTE_RGB, PALETTE_GRAYSCALE, OTHER };
109 void SetCompression(
int compression)
111 m_Compression = compression;
117 if ( compression == NoCompression )
119 this->SetUseCompression(
false);
123 this->SetUseCompression(
true);
130 void PrintSelf(std::ostream & os,
Indent indent)
const;
132 void InternalWrite(
const void *buffer);
134 void InitializeColors();
136 void ReadGenericImage(
void *out,
137 unsigned int itkNotUsed(width),
138 unsigned int height);
141 void ReadTwoSamplesPerPixelImage(
void *out,
142 unsigned int itkNotUsed(width),
143 unsigned int height);
145 int EvaluateImageAt(
void *out,
void *in);
147 unsigned int GetFormat();
149 void GetColor(
int index,
unsigned short *red,
150 unsigned short *green,
unsigned short *blue);
153 bool CanFindTIFFTag(
unsigned int t);
158 #ifndef ITK_USE_SYSTEM_TIFF
160 void * ReadRawByteFromTag(
unsigned int t,
short & value_count);
161 #endif // ITK_USE_SYSTEM_TIFF
169 void operator=(
const Self &);
179 #endif // __itkTIFFImageIO_h