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

itk::JPEGImageIO Class Reference

#include <itkJPEGImageIO.h>

Inheritance diagram for itk::JPEGImageIO:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef JPEGImageIO Self
typedef ImageIOBase Superclass
typedef SmartPointer< SelfPointer

Public Member Functions

virtual const char * GetClassName () const
virtual void SetUseCompression (bool _arg)
virtual bool CanReadFile (const char *)
virtual void ReadImageInformation ()
virtual const std::type_info & GetPixelType () const
virtual void Read (void *buffer)
virtual void ReadVolume (void *buffer)
virtual unsigned int GetComponentSize () const
virtual bool CanWriteFile (const char *)
virtual void WriteImageInformation ()
virtual void Write (const void *buffer)
virtual void SetQuality (int _arg)
virtual int GetQuality ()
virtual void SetProgressive (bool _arg)
virtual bool GetProgressive ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 JPEGImageIO ()
 ~JPEGImageIO ()
void PrintSelf (std::ostream &os, Indent indent) const
void WriteSlice (std::string &fileName, const void *buffer)

Protected Attributes

bool m_UseCompression
int m_Quality
bool m_Progressive

Member Typedef Documentation

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

Reimplemented from itk::ImageIOBase.

Definition at line 40 of file itkJPEGImageIO.h.

typedef JPEGImageIO itk::JPEGImageIO::Self
 

Standard class typedefs.

Reimplemented from itk::ImageIOBase.

Definition at line 38 of file itkJPEGImageIO.h.

typedef ImageIOBase itk::JPEGImageIO::Superclass
 

Reimplemented from itk::ImageIOBase.

Definition at line 39 of file itkJPEGImageIO.h.


Constructor & Destructor Documentation

itk::JPEGImageIO::JPEGImageIO  )  [protected]
 

itk::JPEGImageIO::~JPEGImageIO  )  [protected]
 


Member Function Documentation

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

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

Implements itk::ImageIOBase.

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

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

Implements itk::ImageIOBase.

virtual const char* itk::JPEGImageIO::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

virtual unsigned int itk::JPEGImageIO::GetComponentSize  )  const [virtual]
 

Compute the size (in bytes) of the components of a pixel. For example, and RGB pixel of unsigned char would have a component size of 1 byte.

Reimplemented from itk::ImageIOBase.

virtual const std::type_info& itk::JPEGImageIO::GetPixelType  )  const [virtual]
 

Get the type of the pixel.

Reimplemented from itk::ImageIOBase.

virtual bool itk::JPEGImageIO::GetProgressive  )  [virtual]
 

virtual int itk::JPEGImageIO::GetQuality  )  [virtual]
 

Set/Get the level of quality for the output images.

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

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

void itk::JPEGImageIO::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.

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

Reads the data from disk into the memory buffer provided.

Implements itk::ImageIOBase.

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

Set the spacing and diemention information for the set filename.

Implements itk::ImageIOBase.

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

Reads 3D data from multiple files assuming one slice per file.

virtual void itk::JPEGImageIO::SetProgressive bool  _arg  )  [virtual]
 

virtual void itk::JPEGImageIO::SetQuality int  _arg  )  [virtual]
 

Set/Get the level of quality for the output images.

virtual void itk::JPEGImageIO::SetUseCompression bool  _arg  )  [virtual]
 

Set if the compression should be used for writing

virtual void itk::JPEGImageIO::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.

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

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

Implements itk::ImageIOBase.

void itk::JPEGImageIO::WriteSlice std::string &  fileName,
const void *  buffer
[protected]
 


Member Data Documentation

bool itk::JPEGImageIO::m_Progressive [protected]
 

Default = true Definition at line 114 of file itkJPEGImageIO.h.

int itk::JPEGImageIO::m_Quality [protected]
 

Determines the quality of compression for written files. default = 95 Definition at line 111 of file itkJPEGImageIO.h.

bool itk::JPEGImageIO::m_UseCompression [protected]
 

Set if the compression should be used for writing the value is false by default Definition at line 107 of file itkJPEGImageIO.h.


The documentation for this class was generated from the following file:
Generated at Sun Apr 1 03:14:55 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000