18#ifndef itkTIFFImageIO_h
19#define itkTIFFImageIO_h
20#include "ITKIOTIFFExport.h"
28class TIFFReaderInternal;
80 Read(
void * buffer)
override;
101 Write(
const void * buffer)
override;
131 this->UseCompressionOff();
132 this->SetCompressor(
"NoCompression");
137 this->UseCompressionOn();
138 this->SetCompressor(
"PackBits");
143 this->UseCompressionOn();
144 this->SetCompressor(
"JPEG");
149 this->UseCompressionOn();
150 this->SetCompressor(
"Deflate");
155 this->UseCompressionOn();
156 this->SetCompressor(
"LZW");
166 this->SetCompressionLevel(_JPEGQuality);
171 return this->GetCompressionLevel();
187 if (this->m_ColorPalette != _arg)
189 this->m_ColorPalette = _arg;
209 m_Compression = compression;
229 GetColor(uint64_t index, uint16_t * red, uint16_t * green, uint16_t * blue);
244 TIFFReaderInternal * m_InternalImage{};
260 template <
typename TComponent>
264 template <
typename TComponent>
268 template <
typename TType>
275 unsigned int fromskew);
277 template <
typename TType>
279 PutRGB_(TType * to, TType * from,
unsigned int xsize,
unsigned int ysize,
unsigned int toskew,
unsigned int fromskew);
282 template <
typename TType,
typename TFromType>
289 unsigned int fromskew);
291 template <
typename TType,
typename TFromType>
298 unsigned int fromskew);
300 template <
typename TType,
typename TFromType>
307 unsigned int fromskew);
309 uint16_t * m_ColorRed{};
310 uint16_t * m_ColorGreen{};
311 uint16_t * m_ColorBlue{};
312 uint64_t m_TotalColors{ 0 };
Abstract superclass defines image IO interface.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
Represent Red, Green and Blue components for color images.
ImageIO object for reading and writing TIFF images.
bool CanFindTIFFTag(unsigned int t)
void WriteImageInformation() override
void Write(const void *buffer) override
void ReadTwoSamplesPerPixelImage(void *out, unsigned int width, unsigned int height)
void InternalSetCompressor(const std::string &_compressor) override
void SetCompression(int compression)
void AllocateTiffPalette(uint16_t bps)
void PutGrayscale(TType *to, TType *from, unsigned int xsize, unsigned int ysize, unsigned int toskew, unsigned int fromskew)
void ReadGenericImage(void *out, unsigned int width, unsigned int height)
virtual void SetJPEGQuality(int _JPEGQuality)
void SetCompressionToDeflate()
std::vector< RGBPixelType > PaletteType
void PutPaletteScalar(TType *to, TFromType *from, unsigned int xsize, unsigned int ysize, unsigned int toskew, unsigned int fromskew)
void SetCompressionToPackBits()
void PutPaletteRGB(TType *to, TFromType *from, unsigned int xsize, unsigned int ysize, unsigned int toskew, unsigned int fromskew)
void PutPaletteGrayscale(TType *to, TFromType *from, unsigned int xsize, unsigned int ysize, unsigned int toskew, unsigned int fromskew)
void SetCompressionToNoCompression()
Set type and automatically enable/disable compression.
void PutRGB_(TType *to, TType *from, unsigned int xsize, unsigned int ysize, unsigned int toskew, unsigned int fromskew)
void SetColorPalette(const PaletteType _arg)
void * ReadRawByteFromTag(unsigned int t, unsigned int &value_count)
bool CanWriteFile(const char *) override
void GetColor(uint64_t index, uint16_t *red, uint16_t *green, uint16_t *blue)
void ReadGenericImage(void *_out, unsigned int width, unsigned int height)
void InternalWrite(const void *buffer)
bool CanReadFile(const char *) override
void ReadCurrentPage(void *buffer, vcl_size_t pixelOffset)
void RGBAImageToBuffer(void *out, const uint32_t *tempImage)
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void ReadVolume(void *buffer)
virtual int GetJPEGQuality() const
void SetCompressionToJPEG()
void ReadImageInformation() override
void Read(void *buffer) override
void SetCompressionToLZW()
void PopulateColorPalette()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....