#include <mitkRawFilesWriter.h>
Inherits mitkVolumeWriter.
Inheritance diagram for mitkRawFilesWriter:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | SetEndian (bool isBig=false) |
void | SetBigEndian (bool isBig=true) |
void | SetLittleEndian (bool isBig=false) |
void | SetPlanarCfg (bool isColorByPlane) |
void | SetTitleBytes (int n) |
mitkRawFilesWriter writes a volume to a series of raw files (one slice per file with no header information). All the property of volume will lost, including the image width, height, image number, spacing information, etc. You can control the format of output file by setting the endian configuration, planar configuration and header size.
SetTitleBytes To use this writer, the code snippet is:
mitkRawWriter *aWriter = new mitkRawWriter; aWriter->SetInput(aVolume); int imageNum = aVolume->GetImageNum(); Gerenate file names into files[imageNum]; for(int i = 0; i < imageNum; i++) aWriter->AddFileName(files[i]); aWriter->Run();
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkVolumeWriter. |
|
Provided for convenience, just the same as SetEndian(). |
|
Set endian if depth per pixel is bigger than 8.
|
|
Provided for convenience, just the same as SetEndian(). |
|
Set planar configuration.
|
|
Set number of bytes in title.
|