refinery
RAW file processor
|
Outputs images in PPM format. More...
#include <refinery/output.h>
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. |
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.
void refinery::ImageWriter::writeImage | ( | const RGBImage & | image, |
std::ostream & | ostream, | ||
unsigned int | colorDepth = 8 |
||
) |
Writes an image as PPM to an output stream.
[in] | image | 16-bit RGB image. |
[in] | ostream | Output stream where PPM data will be written. |
[in] | colorDepth | 8 or 16, for 8-bit or 16-bit output. |
void refinery::ImageWriter::writeImage | ( | const RGBImage & | image, |
const char * | filename, | ||
unsigned int | colorDepth = 8 |
||
) |
Writes an image as PPM to an output stream.
[in] | image | 16-bit RGB image. |
[in] | filename | Output filename where PPM data will be written. |
[in] | colorDepth | 8 or 16, for 8-bit or 16-bit output. |