VTK
Public Member Functions | Protected Member Functions | Protected Attributes
vtkDICOMImageReader Class Reference

Reads some DICOM images. More...

#include <vtkDICOMImageReader.h>

Inheritance diagram for vtkDICOMImageReader:
Inheritance graph
[legend]
Collaboration diagram for vtkDICOMImageReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
void SetDirectoryName (const char *dn)
doubleGetPixelSpacing ()
int GetWidth ()
int GetHeight ()
floatGetImagePositionPatient ()
floatGetImageOrientationPatient ()
int GetBitsAllocated ()
int GetPixelRepresentation ()
int GetNumberOfComponents ()
const char * GetTransferSyntaxUID ()
float GetRescaleSlope ()
float GetRescaleOffset ()
const char * GetPatientName ()
const char * GetStudyUID ()
const char * GetStudyID ()
float GetGantryAngle ()
virtual int CanReadFile (const char *fname)
virtual const char * GetFileExtensions ()
void SetFileName (const char *fn)
virtual char * GetDirectoryName ()
virtual const char * GetDescriptiveName ()

Protected Member Functions

void SetupOutputInformation (int num_slices)
virtual void ExecuteInformation ()
virtual void ExecuteDataWithInformation (vtkDataObject *out, vtkInformation *outInfo)
 vtkDICOMImageReader ()
virtual ~vtkDICOMImageReader ()
int GetNumberOfDICOMFileNames ()
const char * GetDICOMFileName (int index)

Protected Attributes

DICOMParser * Parser
DICOMAppHelper * AppHelper
vtkDICOMImageReaderVector * DICOMFileNames
char * DirectoryName
char * PatientName
char * StudyUID
char * StudyID
char * TransferSyntaxUID
typedef vtkImageReader2 Superclass
static vtkDICOMImageReaderNew ()
static int IsTypeOf (const char *type)
static vtkDICOMImageReaderSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkDICOMImageReaderNewInstance () const
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

Reads some DICOM images.

DICOM (stands for Digital Imaging in COmmunications and Medicine) is a medical image file format widely used to exchange data, provided by various modalities.

Warning:
This reader might eventually handle ACR-NEMA file (predecessor of the DICOM format for medical images). This reader does not handle encapsulated format, only plain raw file are handled. This reader also does not handle multi-frames DICOM datasets.
Internally DICOMParser assumes the x,y pixel spacing is stored in 0028,0030 and that z spacing is stored in Slice Thickness (correct only when slice were acquired contiguous): 0018,0050. Which means this is only valid for some rare MR Image Storage
See also:
vtkBMPReader vtkPNMReader vtkTIFFReader
Examples:
vtkDICOMImageReader (Examples)
Tests:
vtkDICOMImageReader (Tests)

Definition at line 54 of file vtkDICOMImageReader.h.


Member Typedef Documentation

Static method for construction.

Reimplemented from vtkImageReader2.

Definition at line 60 of file vtkDICOMImageReader.h.


Constructor & Destructor Documentation

virtual vtkDICOMImageReader::~vtkDICOMImageReader ( ) [protected, virtual]

Member Function Documentation

Static method for construction.

Reimplemented from vtkImageReader2.

static int vtkDICOMImageReader::IsTypeOf ( const char *  type) [static]

Static method for construction.

Reimplemented from vtkImageReader2.

virtual int vtkDICOMImageReader::IsA ( const char *  type) [virtual]

Static method for construction.

Reimplemented from vtkImageReader2.

Static method for construction.

Reimplemented from vtkImageReader2.

virtual vtkObjectBase* vtkDICOMImageReader::NewInstanceInternal ( ) const [protected, virtual]

Static method for construction.

Reimplemented from vtkImageReader2.

Static method for construction.

Reimplemented from vtkImageReader2.

void vtkDICOMImageReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Prints the ivars.

Reimplemented from vtkImageReader2.

void vtkDICOMImageReader::SetFileName ( const char *  fn) [inline, virtual]

Set the filename for the file to read. If this method is used, the reader will only read a single file.

Reimplemented from vtkImageReader2.

Definition at line 69 of file vtkDICOMImageReader.h.

void vtkDICOMImageReader::SetDirectoryName ( const char *  dn)

Set the directory name for the reader to look in for DICOM files. If this method is used, the reader will try to find all the DICOM files in a directory. It will select the subset corresponding to the first series UID it stumbles across and it will try to build an ordered volume from them based on the slice number. The volume building will be upgraded to something more sophisticated in the future.

virtual char* vtkDICOMImageReader::GetDirectoryName ( ) [virtual]

Returns the directory name.

Returns the pixel spacing (in X, Y, Z). Note: if there is only one slice, the Z spacing is set to the slice thickness. If there is more than one slice, it is set to the distance between the first two slices.

Returns the image width.

Returns the image height.

Get the (DICOM) x,y,z coordinates of the first pixel in the image (upper left hand corner) of the last image processed by the DICOMParser

Get the (DICOM) directions cosines. It consist of the components of the first two vectors. The third vector needs to be computed to form an orthonormal basis.

Get the number of bits allocated for each pixel in the file.

Get the pixel representation of the last image processed by the DICOMParser. A zero is a unsigned quantity. A one indicates a signed quantity

Get the number of components of the image data for the last image processed.

Get the transfer syntax UID for the last image processed.

Get the rescale slope for the pixel data.

Get the rescale offset for the pixel data.

Get the patient name for the last image processed.

Get the study uid for the last image processed.

Get the Study ID for the last image processed.

Get the gantry angle for the last image processed.

virtual int vtkDICOMImageReader::CanReadFile ( const char *  fname) [virtual]
virtual const char* vtkDICOMImageReader::GetFileExtensions ( ) [inline, virtual]

Get the file extensions for this format. Returns a string with a space separated list of extensions in the format .extension

Reimplemented from vtkImageReader2.

Definition at line 161 of file vtkDICOMImageReader.h.

virtual const char* vtkDICOMImageReader::GetDescriptiveName ( ) [inline, virtual]

Return a descriptive name for the file format that might be useful in a GUI.

Reimplemented from vtkImageReader2.

Definition at line 169 of file vtkDICOMImageReader.h.

void vtkDICOMImageReader::SetupOutputInformation ( int  num_slices) [protected]
virtual void vtkDICOMImageReader::ExecuteInformation ( ) [protected, virtual]

Reimplemented from vtkImageReader2.

virtual void vtkDICOMImageReader::ExecuteDataWithInformation ( vtkDataObject output,
vtkInformation outInfo 
) [protected, virtual]

This is a convenience method that is implemented in many subclasses instead of RequestData. It is called by RequestData.

Reimplemented from vtkImageReader2.

const char* vtkDICOMImageReader::GetDICOMFileName ( int  index) [protected]

Member Data Documentation

DICOMParser* vtkDICOMImageReader::Parser [protected]

Definition at line 197 of file vtkDICOMImageReader.h.

DICOMAppHelper* vtkDICOMImageReader::AppHelper [protected]

Definition at line 202 of file vtkDICOMImageReader.h.

vtkDICOMImageReaderVector* vtkDICOMImageReader::DICOMFileNames [protected]

Definition at line 207 of file vtkDICOMImageReader.h.

Definition at line 208 of file vtkDICOMImageReader.h.

Definition at line 210 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::StudyUID [protected]

Definition at line 211 of file vtkDICOMImageReader.h.

char* vtkDICOMImageReader::StudyID [protected]

Definition at line 212 of file vtkDICOMImageReader.h.

Definition at line 213 of file vtkDICOMImageReader.h.


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