Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::TIFFImageIO Class Reference
[Input and Output Filters]

ImageIO object for reading and writing TIFF images. More...

#include <itkTIFFImageIO.h>

Inheritance diagram for itk::TIFFImageIO:

Inheritance graph
[legend]
Collaboration diagram for itk::TIFFImageIO:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TIFFImageIO Self
typedef ImageIOBase Superclass
typedef SmartPointer< SelfPointer
enum  {
  NOFORMAT, RGB_, GRAYSCALE, PALETTE_RGB,
  PALETTE_GRAYSCALE, OTHER
}
enum  {
  NoCompression, PackBits, JPEG, Deflate,
  LZW
}

Public Member Functions

virtual const char * GetNameOfClass () const
virtual bool CanReadFile (const char *)
virtual void ReadImageInformation ()
virtual void Read (void *buffer)
virtual void ReadVolume (void *buffer)
virtual void ReadTiles (void *buffer)
virtual bool CanWriteFile (const char *)
virtual void WriteImageInformation ()
virtual void Write (const void *buffer)
void SetCompressionToNoCompression ()
void SetCompressionToPackBits ()
void SetCompressionToJPEG ()
void SetCompressionToDeflate ()
void SetCompressionToLZW ()
void SetCompression (int compression)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 TIFFImageIO ()
 ~TIFFImageIO ()
void PrintSelf (std::ostream &os, Indent indent) const
void InternalWrite (const void *buffer)
void InitializeColors ()
void ReadGenericImage (void *out, unsigned int, unsigned int height)
void ReadTwoSamplesPerPixelImage (void *out, unsigned int, unsigned int height)
int EvaluateImageAt (void *out, void *in)
unsigned int GetFormat ()
void GetColor (int index, unsigned short *red, unsigned short *green, unsigned short *blue)
bool CanFindTIFFTag (unsigned int t)
void * ReadRawByteFromTag (unsigned int t, short &value_count)

Protected Attributes

TIFFReaderInternal * m_InternalImage
int m_Compression

Detailed Description

ImageIO object for reading and writing TIFF images.

Definition at line 38 of file itkTIFFImageIO.h.


Member Typedef Documentation

typedef SmartPointer<Self> itk::TIFFImageIO::Pointer
 

Reimplemented from itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

Definition at line 44 of file itkTIFFImageIO.h.

typedef TIFFImageIO itk::TIFFImageIO::Self
 

Standard class typedefs.

Reimplemented from itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

Definition at line 42 of file itkTIFFImageIO.h.

typedef ImageIOBase itk::TIFFImageIO::Superclass
 

Reimplemented from itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

Definition at line 43 of file itkTIFFImageIO.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NOFORMAT 
RGB_ 
GRAYSCALE 
PALETTE_RGB 
PALETTE_GRAYSCALE 
OTHER 

Definition at line 84 of file itkTIFFImageIO.h.

anonymous enum
 

Enumeration values:
NoCompression 
PackBits 
JPEG 
Deflate 
LZW 

Definition at line 87 of file itkTIFFImageIO.h.


Constructor & Destructor Documentation

itk::TIFFImageIO::TIFFImageIO  )  [protected]
 

itk::TIFFImageIO::~TIFFImageIO  )  [protected]
 


Member Function Documentation

bool itk::TIFFImageIO::CanFindTIFFTag unsigned int  t  )  [protected]
 

virtual bool itk::TIFFImageIO::CanReadFile const char *   )  [virtual]
 

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

virtual bool itk::TIFFImageIO::CanWriteFile const char *   )  [virtual]
 

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

int itk::TIFFImageIO::EvaluateImageAt void *  out,
void *  in
[protected]
 

void itk::TIFFImageIO::GetColor int  index,
unsigned short *  red,
unsigned short *  green,
unsigned short *  blue
[protected]
 

unsigned int itk::TIFFImageIO::GetFormat  )  [protected]
 

virtual const char* itk::TIFFImageIO::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

void itk::TIFFImageIO::InitializeColors  )  [protected]
 

void itk::TIFFImageIO::InternalWrite const void *  buffer  )  [protected]
 

Pointer itk::TIFFImageIO::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

Reimplemented in itk::LSMImageIO.

void itk::TIFFImageIO::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

virtual void itk::TIFFImageIO::Read void *  buffer  )  [virtual]
 

Reads the data from disk into the memory buffer provided.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

void itk::TIFFImageIO::ReadGenericImage void *  out,
unsigned  int,
unsigned int  height
[protected]
 

virtual void itk::TIFFImageIO::ReadImageInformation  )  [virtual]
 

Set the spacing and diemention information for the set filename.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

void* itk::TIFFImageIO::ReadRawByteFromTag unsigned int  t,
short &  value_count
[protected]
 

virtual void itk::TIFFImageIO::ReadTiles void *  buffer  )  [virtual]
 

Reads 3D data from tiled tiff

void itk::TIFFImageIO::ReadTwoSamplesPerPixelImage void *  out,
unsigned  int,
unsigned int  height
[protected]
 

virtual void itk::TIFFImageIO::ReadVolume void *  buffer  )  [virtual]
 

Reads 3D data from multi-pages tiff.

void itk::TIFFImageIO::SetCompression int  compression  )  [inline]
 

Definition at line 105 of file itkTIFFImageIO.h.

void itk::TIFFImageIO::SetCompressionToDeflate  )  [inline]
 

Definition at line 102 of file itkTIFFImageIO.h.

void itk::TIFFImageIO::SetCompressionToJPEG  )  [inline]
 

Definition at line 101 of file itkTIFFImageIO.h.

void itk::TIFFImageIO::SetCompressionToLZW  )  [inline]
 

Definition at line 103 of file itkTIFFImageIO.h.

void itk::TIFFImageIO::SetCompressionToNoCompression  )  [inline]
 

Definition at line 99 of file itkTIFFImageIO.h.

void itk::TIFFImageIO::SetCompressionToPackBits  )  [inline]
 

Definition at line 100 of file itkTIFFImageIO.h.

virtual void itk::TIFFImageIO::Write const void *  buffer  )  [virtual]
 

Writes the data to disk from the memory buffer provided. Make sure that the IORegion has been set properly.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.

virtual void itk::TIFFImageIO::WriteImageInformation  )  [virtual]
 

Writes the spacing and dimentions of the image. Assumes SetFileName has been called with a valid file name.

Implements itk::ImageIOBase.

Reimplemented in itk::LSMImageIO.


Member Data Documentation

int itk::TIFFImageIO::m_Compression [protected]
 

Definition at line 154 of file itkTIFFImageIO.h.

TIFFReaderInternal* itk::TIFFImageIO::m_InternalImage [protected]
 

Definition at line 153 of file itkTIFFImageIO.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:30:20 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000