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

mitkRawWriter Class Reference

mitkRawWriter - a concrete writer for writing a volume to a single raw file(no any header information). More...

#include <mitkRawWriter.h>

Inherits mitkVolumeWriter.

Inheritance diagram for mitkRawWriter:

Inheritance graph
[legend]
Collaboration diagram for mitkRawWriter:

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

mitkRawWriter - a concrete writer for writing a volume to a single raw file(no any header information).

mitkRawWriter writes a volume to a single raw file(no any 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); 
    aWriter->AddFileName(filename); 
    aWriter->Run(); 


Member Function Documentation

virtual void mitkRawWriter::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 mitkRawWriter::SetBigEndian bool  isBig = true  )  [inline]
 

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

void mitkRawWriter::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 mitkRawWriter::SetLittleEndian bool  isBig = false  )  [inline]
 

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

void mitkRawWriter::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 mitkRawWriter::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:30 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3