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

mitkJPEGWriter Class Reference

mitkJPEGWriter - a concrete writer for writing a volume to JPEG image files More...

#include <mitkJPEGWriter.h>

Inherits mitkVolumeWriter.

Inheritance diagram for mitkJPEGWriter:

Inheritance graph
[legend]
Collaboration diagram for mitkJPEGWriter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
void SetQuality (int quality)

Detailed Description

mitkJPEGWriter - a concrete writer for writing a volume to JPEG image files

mitkJPEGWriter writes a volume to a set of JPEG image files. Because the volume is a 3D dataset, it may contain many slices. So the file names must be generated and passed to writer properly. To use this writer, the code snippet is:

    mitkJPEGWriter *aWriter = new mitkJPEGWriter; 
    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 mitkJPEGWriter::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 mitkJPEGWriter::SetQuality int  quality  )  [inline]
 

Set the quality of output JPEG images.

Parameters:
quality The quality of output JPEG images. The maximum value is 100, and the default value is 95.


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