#include <mitkBMPReader.h>
Inherits mitkVolumeReader.
Inheritance diagram for mitkBMPReader:
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]) |
mitkBMPReader reads a set of BMP image files to a volume. Because BMP 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:
mitkBMPReader *aReader = new mitkBMPReader; 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.
|