#include <mitkJPEGReader.h>
Inherits mitkVolumeReader.
Inheritance diagram for mitkJPEGReader:
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]) |
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 }
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkVolumeReader. |
|
Set spacing information in x, y, z axis respectively, the unit is mm.
|
|
Set spacing information in x axis, the unit is mm.
|
|
Set spacing information in y axis, the unit is mm.
|
|
Set spacing information in z axis, the unit is mm.
|