Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkJPEGReader Class Reference

mitkJPEGReader - a concrete reader for reading JPEG image files More...

#include <mitkJPEGReader.h>

Inherits mitkVolumeReader.

Inheritance diagram for mitkJPEGReader:

Inheritance graph
[legend]
Collaboration diagram for mitkJPEGReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
void SetSpacingX (float px)
void SetSpacingY (float py)
void SetSpacingZ (float pz)
void SetSpacings (float s[3])

Detailed Description

mitkJPEGReader - a concrete reader for reading JPEG image files

mitkJPEGReader reads a set of JPEG image files to a volume. Because JPEG file doesn't have the spacing information, you must set them using the SetSpacingX, SetSpacingY, SetSpacingZ functions. To use this reader, the code snippet is:

    mitkJPEGReader *aReader = new mitkJPEGReader; 
    aReader->SetSpacingX(sx); 
    aReader->SetSpacingY(sy); 
    aReader->SetSpacingZ(sz); 
    aReader->AddFileName(file1); 
    aReader->AddFileName(file2); 
    ...  ...  ... 
    if (aReader->Run())
    { 
        mitkVolume *aVolume = aReader->GetOutput(); 
        Using aVolume
    }
Warning:
All of the images must have equal width and height. Otherwise they can't form a volume. Now MITK doesn't support JPEG 2000 standard.


Member Function Documentation

virtual void mitkJPEGReader::PrintSelf ostream &  os  )  [virtual]
 

Print the necessary information about this object for the debugging purpose.

Parameters:
os The specified ostream to output information.

Reimplemented from mitkVolumeReader.

void mitkJPEGReader::SetSpacings float  s[3]  )  [inline]
 

Set spacing information in x, y, z axis respectively, the unit is mm.

Parameters:
px the spacing (mm) in two adjacent voxels in x axis.
py the spacing (mm) in two adjacent voxels in y axis.
pz the spacing (mm) in two adjacent voxels in z axis.

void mitkJPEGReader::SetSpacingX float  px  )  [inline]
 

Set spacing information in x axis, the unit is mm.

Parameters:
px the spacing (mm) in two adjacent voxels in x axis.

void mitkJPEGReader::SetSpacingY float  py  )  [inline]
 

Set spacing information in y axis, the unit is mm.

Parameters:
py the spacing (mm) in two adjacent voxels in y axis.

void mitkJPEGReader::SetSpacingZ float  pz  )  [inline]
 

Set spacing information in z axis, the unit is mm.

Parameters:
pz the spacing (mm) in two adjacent voxels in z axis.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:03:31 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3