18 #ifndef __itkTIFFImageIO_h
19 #define __itkTIFFImageIO_h
29 class TIFFReaderInternal;
62 virtual bool CanReadFile(
const char *);
65 virtual void ReadImageInformation();
68 virtual void Read(
void *buffer);
71 virtual void ReadVolume(
void *buffer);
74 virtual void ReadTiles(
void *buffer);
80 virtual bool CanWriteFile(
const char *);
84 virtual void WriteImageInformation();
88 virtual void Write(
const void *buffer);
90 enum { NOFORMAT,
RGB_, GRAYSCALE, PALETTE_RGB, PALETTE_GRAYSCALE, OTHER };
111 void SetCompression(
int compression)
113 m_Compression = compression;
119 if ( compression == NoCompression )
121 this->SetUseCompression(
false);
125 this->SetUseCompression(
true);
132 void PrintSelf(std::ostream & os,
Indent indent)
const;
134 void InternalWrite(
const void *buffer);
136 void InitializeColors();
138 void ReadGenericImage(
void *out,
139 unsigned int itkNotUsed(width),
140 unsigned int height);
143 void ReadTwoSamplesPerPixelImage(
void *out,
144 unsigned int itkNotUsed(width),
145 unsigned int height);
147 int EvaluateImageAt(
void *out,
void *in);
149 unsigned int GetFormat();
151 void GetColor(
int index,
unsigned short *red,
152 unsigned short *green,
unsigned short *blue);
155 bool CanFindTIFFTag(
unsigned int t);
160 #ifndef ITK_USE_SYSTEM_TIFF
162 void * ReadRawByteFromTag(
unsigned int t,
short & value_count);
163 #endif // ITK_USE_SYSTEM_TIFF
171 void operator=(
const Self &);
181 #endif // __itkTIFFImageIO_h