ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
itk::JPEG2000ImageIO Class Reference

#include <itkJPEG2000ImageIO.h>

+ Inheritance diagram for itk::JPEG2000ImageIO:
+ Collaboration diagram for itk::JPEG2000ImageIO:

List of all members.

Public Types

typedef SmartPointer< SelfPointer
typedef JPEG2000ImageIO Self
typedef StreamingImageIOBase Superclass

Public Member Functions

virtual bool CanReadFile (const char *)
virtual bool CanStreamWrite (void)
virtual bool CanWriteFile (const char *)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual ImageIORegion GenerateStreamableReadRegionFromRequestedRegion (const ImageIORegion &requested) const
virtual SizeType GetHeaderSize (void) const
virtual const char * GetNameOfClass () const
virtual void Read (void *buffer)
virtual void ReadImageInformation ()
void SetTileSize (int x, int y)
virtual void Write (const void *buffer)
virtual void WriteImageInformation ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 JPEG2000ImageIO ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~JPEG2000ImageIO ()

Private Types

typedef
ImageIORegion::IndexValueType 
IndexValueType
typedef
ImageIORegion::SizeValueType 
SizeValueType

Private Member Functions

void ComputeRegionInTileBoundaries (unsigned int dimension, SizeValueType tileSize, ImageIORegion &streamableRegion) const
 JPEG2000ImageIO (const Self &)
void operator= (const Self &)

Private Attributes

AutoPointer
< JPEG2000ImageIOInternal > 
m_Internal

Detailed Description

Supports for the JPEG2000 file format based on openjpeg.

JPEG2000 offers a large collection of interesting features including: compression (lossless and lossy), streaming, multi-channel images.

This code was contributed in the Insight Journal paper: "Support for Streaming the JPEG2000 File Format" by Mosaliganti K., Ibanez L., Megason S http://hdl.handle.net/10380/3187 http://www.insight-journal.org/browse/publication/741

Definition at line 49 of file itkJPEG2000ImageIO.h.


Member Typedef Documentation

Types for managing image size and image index components.

Reimplemented from itk::ImageIOBase.

Definition at line 122 of file itkJPEG2000ImageIO.h.

Reimplemented from itk::StreamingImageIOBase.

Definition at line 55 of file itkJPEG2000ImageIO.h.

Standard class typedefs.

Reimplemented from itk::StreamingImageIOBase.

Definition at line 53 of file itkJPEG2000ImageIO.h.

Reimplemented from itk::ImageIOBase.

Definition at line 121 of file itkJPEG2000ImageIO.h.

Reimplemented from itk::StreamingImageIOBase.

Definition at line 54 of file itkJPEG2000ImageIO.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual bool itk::JPEG2000ImageIO::CanReadFile ( const char *  ) [virtual]

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

Implements itk::ImageIOBase.

virtual bool itk::JPEG2000ImageIO::CanStreamWrite ( void  ) [virtual]

Currently JPEG2000 does not support streamed writing

These methods are re-overridden to not support streaming for now...

Reimplemented from itk::StreamingImageIOBase.

virtual bool itk::JPEG2000ImageIO::CanWriteFile ( const char *  ) [virtual]

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

Implements itk::ImageIOBase.

void itk::JPEG2000ImageIO::ComputeRegionInTileBoundaries ( unsigned int  dimension,
SizeValueType  tileSize,
ImageIORegion streamableRegion 
) const [private]
virtual::itk::LightObject::Pointer itk::JPEG2000ImageIO::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::LightProcessObject.

Method for supporting streaming. Given a requested region, determine what could be the region that we can read from the file. This is called the streamable region, which will be smaller than the LargestPossibleRegion and greater or equal to the RequestedRegion

Reimplemented from itk::StreamingImageIOBase.

virtual SizeType itk::JPEG2000ImageIO::GetHeaderSize ( void  ) const [virtual]

Method required by the base class StreamingImageIOBase

Implements itk::StreamingImageIOBase.

virtual const char* itk::JPEG2000ImageIO::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::StreamingImageIOBase.

static Pointer itk::JPEG2000ImageIO::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

void itk::JPEG2000ImageIO::operator= ( const Self ) [private]

This method causes the filter to generate its output.

Reimplemented from itk::StreamingImageIOBase.

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

virtual void itk::JPEG2000ImageIO::Read ( void *  buffer) [virtual]

Reads the data from disk into the memory buffer provided.

Implements itk::ImageIOBase.

virtual void itk::JPEG2000ImageIO::ReadImageInformation ( ) [virtual]

Set the spacing and dimension information for the set filename.

Implements itk::ImageIOBase.

void itk::JPEG2000ImageIO::SetTileSize ( int  x,
int  y 
)

Define the tile size to use when writing out an image.

virtual void itk::JPEG2000ImageIO::Write ( const void *  buffer) [virtual]

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

Implements itk::ImageIOBase.

virtual void itk::JPEG2000ImageIO::WriteImageInformation ( ) [virtual]

Set the spacing and dimension information for the set filename.

Implements itk::ImageIOBase.


Member Data Documentation

AutoPointer< JPEG2000ImageIOInternal > itk::JPEG2000ImageIO::m_Internal [private]

Definition at line 119 of file itkJPEG2000ImageIO.h.


The documentation for this class was generated from the following file: