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

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

ImageIO class for reading and writing DICOM v3 and ACR/NEMA images This class is only an adaptor to the gdcm library (currently gdcm 0.6.x is used):. More...

#include <itkGDCMImageIO.h>

Inheritance diagram for itk::GDCMImageIO:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef GDCMImageIO Self
typedef ImageIOBase Superclass
typedef SmartPointer< SelfPointer

Public Member Functions

virtual const char * GetClassName () const
virtual bool CanReadFile (const char *)
virtual void ReadImageInformation ()
virtual void Read (void *buffer)
virtual bool CanWriteFile (const char *)
virtual void WriteImageInformation ()
virtual void Write (const void *buffer)
virtual double GetRescaleSlope ()
virtual double GetRescaleIntercept ()
virtual const char * GetUIDPrefix () const
virtual void SetUIDPrefix (const char *_arg)
virtual void SetKeepOriginalUID (bool _arg)
virtual bool GetKeepOriginalUID ()
virtual void KeepOriginalUIDOn ()
virtual void KeepOriginalUIDOff ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 GDCMImageIO ()
 ~GDCMImageIO ()
void PrintSelf (std::ostream &os, Indent indent) const
bool OpenGDCMFileForReading (std::ifstream &os, const char *filename)
bool OpenGDCMFileForWriting (std::ofstream &os, const char *filename)
void InternalReadImageInformation (std::ifstream &file)

Protected Attributes

double m_RescaleSlope
double m_RescaleIntercept
std::string m_UIDPrefix
std::string m_StudyInstanceUID
std::string m_SeriesInstanceUID
std::string m_FrameOfReferenceInstanceUID
bool m_KeepOriginalUID

Detailed Description

ImageIO class for reading and writing DICOM v3 and ACR/NEMA images This class is only an adaptor to the gdcm library (currently gdcm 0.6.x is used):.

http://creatis-www.insa-lyon.fr/Public/Gdcm/

CREATIS INSA - Lyon 2003-2005 http://www.creatis.insa-lyon.fr

Warning:
There are several restrictions to this current writer: * Basically you always need a DICOM as input to write a proper DICOM image file (As of 12/10/2004 this restriction is solved in GDCM CVS repository) * Eventhough during the writing process you pass in a DICOM file as input The output file may not contains ALL DICOM field from the input file. In particular:

Definition at line 50 of file itkGDCMImageIO.h.


Member Typedef Documentation

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

Reimplemented from itk::ImageIOBase.

Definition at line 56 of file itkGDCMImageIO.h.

typedef GDCMImageIO itk::GDCMImageIO::Self
 

Standard class typedefs.

Reimplemented from itk::ImageIOBase.

Definition at line 54 of file itkGDCMImageIO.h.

typedef ImageIOBase itk::GDCMImageIO::Superclass
 

Reimplemented from itk::ImageIOBase.

Definition at line 55 of file itkGDCMImageIO.h.


Constructor & Destructor Documentation

itk::GDCMImageIO::GDCMImageIO  )  [protected]
 

itk::GDCMImageIO::~GDCMImageIO  )  [protected]
 


Member Function Documentation

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

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

Implements itk::ImageIOBase.

virtual bool itk::GDCMImageIO::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::GDCMImageIO::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageIOBase.

virtual bool itk::GDCMImageIO::GetKeepOriginalUID  )  [virtual]
 

Preserve the original DICOM UID of the input files

virtual double itk::GDCMImageIO::GetRescaleIntercept  )  [virtual]
 

Macro to access Rescale Slope and Rescale Intercept. Which are needed to rescale properly image when needed. User then need to Always check those value when access value from the DICOM header

virtual double itk::GDCMImageIO::GetRescaleSlope  )  [virtual]
 

Macro to access Rescale Slope and Rescale Intercept. Which are needed to rescale properly image when needed. User then need to Always check those value when access value from the DICOM header

virtual const char* itk::GDCMImageIO::GetUIDPrefix  )  const [virtual]
 

Macro to access the DICOM UID prefix. By default this is the ITK root id. This default can be overriden if the exam is for example part of an existing study.

void itk::GDCMImageIO::InternalReadImageInformation std::ifstream &  file  )  [protected]
 

virtual void itk::GDCMImageIO::KeepOriginalUIDOff  )  [virtual]
 

Preserve the original DICOM UID of the input files

virtual void itk::GDCMImageIO::KeepOriginalUIDOn  )  [virtual]
 

Preserve the original DICOM UID of the input files

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

Method for creation through the object factory.

Reimplemented from itk::LightProcessObject.

bool itk::GDCMImageIO::OpenGDCMFileForReading std::ifstream &  os,
const char *  filename
[protected]
 

bool itk::GDCMImageIO::OpenGDCMFileForWriting std::ofstream &  os,
const char *  filename
[protected]
 

void itk::GDCMImageIO::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::GDCMImageIO::Read void *  buffer  )  [virtual]
 

Reads the data from disk into the memory buffer provided.

Implements itk::ImageIOBase.

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

Set the spacing and dimesion information for the current filename.

Implements itk::ImageIOBase.

virtual void itk::GDCMImageIO::SetKeepOriginalUID bool  _arg  )  [virtual]
 

Preserve the original DICOM UID of the input files

virtual void itk::GDCMImageIO::SetUIDPrefix const char *  _arg  )  [virtual]
 

Macro to access the DICOM UID prefix. By default this is the ITK root id. This default can be overriden if the exam is for example part of an existing study.

virtual void itk::GDCMImageIO::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::GDCMImageIO::WriteImageInformation  )  [virtual]
 

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

Implements itk::ImageIOBase.


Member Data Documentation

std::string itk::GDCMImageIO::m_FrameOfReferenceInstanceUID [protected]
 

Definition at line 127 of file itkGDCMImageIO.h.

bool itk::GDCMImageIO::m_KeepOriginalUID [protected]
 

Definition at line 128 of file itkGDCMImageIO.h.

double itk::GDCMImageIO::m_RescaleIntercept [protected]
 

Definition at line 122 of file itkGDCMImageIO.h.

double itk::GDCMImageIO::m_RescaleSlope [protected]
 

Definition at line 121 of file itkGDCMImageIO.h.

std::string itk::GDCMImageIO::m_SeriesInstanceUID [protected]
 

Definition at line 126 of file itkGDCMImageIO.h.

std::string itk::GDCMImageIO::m_StudyInstanceUID [protected]
 

Definition at line 125 of file itkGDCMImageIO.h.

std::string itk::GDCMImageIO::m_UIDPrefix [protected]
 

Definition at line 124 of file itkGDCMImageIO.h.


The documentation for this class was generated from the following file:
Generated at Wed Mar 30 01:19:41 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000