Plaintext image-file writer class. More...
#include <Raster/PlaintextWriter.H>
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 | writePlaintextRgbU8 (const Image< PixRGB< byte > > &img, const std::string &fname) |
static void | writePlaintextRgbF32 (const Image< PixRGB< float > > &img, const std::string &fname) |
static void | writePlaintextGrayU8 (const Image< byte > &img, const std::string &fname) |
static void | writePlaintextGrayF32 (const Image< float > &img, const std::string &fname) |
Plaintext image-file writer class.
The resulting files should be usable with matlab's 'load' function, for example.
Definition at line 50 of file PlaintextWriter.H.
std::string PlaintextWriter::writeFrame | ( | const GenericFrame & | image, | |
const std::string & | fname | |||
) | [virtual] |
Write the frame to disk.
Implements RasterWriter.
Definition at line 59 of file PlaintextWriter.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.