CcodeWriter Class Reference

Writes images as C-language arrays. More...

#include <Raster/CcodeWriter.H>

Inheritance diagram for CcodeWriter:
Inheritance graph
[legend]
Collaboration diagram for CcodeWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual std::string writeFrame (const GenericFrame &image, const std::string &fname)
 Write the frame to disk.

Static Public Member Functions

static void writeCcodeRgbU8 (const Image< PixRGB< byte > > &img, const std::string &fname)
static void writeCcodeRgbF32 (const Image< PixRGB< float > > &img, const std::string &fname)
static void writeCcodeGrayU8 (const Image< byte > &img, const std::string &fname)
static void writeCcodeGrayF32 (const Image< float > &img, const std::string &fname)

Detailed Description

Writes images as C-language arrays.

The code in the resulting files can by copy/pasted back into source code

Definition at line 50 of file CcodeWriter.H.


Member Function Documentation

std::string CcodeWriter::writeFrame ( const GenericFrame image,
const std::string fname 
) [virtual]

Write the frame to disk.

Returns:
the actual name of the file that was created (for some subclasses, this may be slightly different than the input fname, if e.g. the subclass decides to add or change a file extension)

Implements RasterWriter.

Definition at line 142 of file CcodeWriter.C.

References GenericFrame::asGrayF32(), GenericFrame::asGrayU8(), GenericFrame::asRgbF32(), GenericFrame::asRgbU8(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U8, GenericFrame::nativeType(), GenericFrame::NONE, GenericFrame::RGB_F32, and GenericFrame::RGB_U8.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:10 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3