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

mitkRawFilesWriter Class Reference

mitkRawFilesWriter - a concrete writer for writing a volume to a a series of raw files. More...

#include <mitkRawFilesWriter.h>

Inherits mitkVolumeWriter.

Inheritance diagram for mitkRawFilesWriter:

Inheritance graph
[legend]
Collaboration diagram for mitkRawFilesWriter:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

mitkRawFilesWriter - a concrete writer for writing a volume to a a series of raw files.

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.

See also:
SetEndian

SetPlanarCfg

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(); 


Member Function Documentation

virtual void mitkRawFilesWriter::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 mitkVolumeWriter.

void mitkRawFilesWriter::SetBigEndian bool  isBig = true  )  [inline]
 

Provided for convenience, just the same as SetEndian().

void mitkRawFilesWriter::SetEndian bool  isBig = false  )  [inline]
 

Set endian if depth per pixel is bigger than 8.

Parameters:
isBig if the endian configuration is big endian (Mac)

void mitkRawFilesWriter::SetLittleEndian bool  isBig = false  )  [inline]
 

Provided for convenience, just the same as SetEndian().

void mitkRawFilesWriter::SetPlanarCfg bool  isColorByPlane  )  [inline]
 

Set planar configuration.

Parameters:
isColorByPlane if the planar configuration is color-by-plane
Note:
Only used when channel number is bigger than 1. For RGB images, if it is color-by-plane, it's means the pixels should be stored as "R1 R2 R3 ... G1 G2 G3 ... B1 B2 B3 ...", otherwise "R1 G1 B1 R2 G2 B2 ..."

void mitkRawFilesWriter::SetTitleBytes int  n  )  [inline]
 

Set number of bytes in title.

Parameters:
n number of bytes in title
Note:
All the bytes in the title will be set to 00H. This title has nothing to do with the image and will be ignored when read.


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