refinery
RAW file processor
Public Member Functions

refinery::ImageWriter Class Reference

Outputs images in PPM format. More...

#include <refinery/output.h>

List of all members.

Public Member Functions

void writeImage (const RGBImage &image, std::ostream &ostream, unsigned int colorDepth=8)
 Writes an image as PPM to an output stream.
void writeImage (const RGBImage &image, const char *filename, unsigned int colorDepth=8)
 Writes an image as PPM to an output stream.

Detailed Description

Outputs images in PPM format.

Refinery is made to be integrated with other image-processing libraries which can output in numerous formats. This class is mostly useful for debugging.

Examples:

util/raw2ppm.cc.

Definition at line 19 of file output.h.


Member Function Documentation

void refinery::ImageWriter::writeImage ( const RGBImage image,
std::ostream &  ostream,
unsigned int  colorDepth = 8 
)

Writes an image as PPM to an output stream.

Parameters:
[in]image16-bit RGB image.
[in]ostreamOutput stream where PPM data will be written.
[in]colorDepth8 or 16, for 8-bit or 16-bit output.
Examples:
util/raw2ppm.cc.
void refinery::ImageWriter::writeImage ( const RGBImage image,
const char *  filename,
unsigned int  colorDepth = 8 
)

Writes an image as PPM to an output stream.

Parameters:
[in]image16-bit RGB image.
[in]filenameOutput filename where PPM data will be written.
[in]colorDepth8 or 16, for 8-bit or 16-bit output.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator