Image file operations. More...
Classes | |
class | soundStreamReader |
Enumerations | |
enum | image_fileformat { FORMAT_NULL, FORMAT_ANY, FORMAT_PGM, FORMAT_PPM, FORMAT_JPG, FORMAT_NUMERIC, FORMAT_NUMERIC_COMPRESSED, FORMAT_PNG } |
Functions | |
bool | read (ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
bool | read (ImageOf< PixelBgr > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
bool | read (ImageOf< PixelRgba > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
bool | read (ImageOf< PixelMono > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
bool | read (ImageOf< PixelFloat > &dest, const std::string &src, image_fileformat format=FORMAT_ANY) |
bool | write (const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
bool | write (const ImageOf< PixelBgr > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
bool | write (const ImageOf< PixelRgba > &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
bool | write (const ImageOf< PixelMono > &src, const std::string &dest, image_fileformat format=FORMAT_PGM) |
bool | write (const ImageOf< PixelFloat > &src, const std::string &dest, image_fileformat format=FORMAT_NUMERIC) |
bool | write (const Image &src, const std::string &dest, image_fileformat format=FORMAT_PPM) |
bool | read (Sound &dest, const char *src) |
Read a sound from file. More... | |
bool | write (const Sound &src, const char *dest) |
Write a sound to file. More... | |
Image file operations.
Enumerator | |
---|---|
FORMAT_NULL | |
FORMAT_ANY | |
FORMAT_PGM | |
FORMAT_PPM | |
FORMAT_JPG | |
FORMAT_NUMERIC | |
FORMAT_NUMERIC_COMPRESSED | |
FORMAT_PNG |
Definition at line 25 of file ImageFile.h.
bool yarp::sig::file::read | ( | ImageOf< PixelBgr > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 854 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelFloat > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 945 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelMono > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 919 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgb > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 827 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgba > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 881 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | Sound & | dest, |
const char * | src | ||
) |
Read a sound from file.
dest | sound to read |
src | name of file (should be a WAV file) |
Definition at line 229 of file SoundFile.cpp.
bool yarp::sig::file::write | ( | const Image & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PPM |
||
) |
Definition at line 1074 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const ImageOf< PixelBgr > & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PPM |
||
) |
Definition at line 992 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const ImageOf< PixelFloat > & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_NUMERIC |
||
) |
Definition at line 1057 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const ImageOf< PixelMono > & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PGM |
||
) |
Definition at line 1040 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const ImageOf< PixelRgb > & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PPM |
||
) |
Definition at line 971 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const ImageOf< PixelRgba > & | src, |
const std::string & | dest, | ||
image_fileformat | format = FORMAT_PPM |
||
) |
Definition at line 1016 of file ImageFile.cpp.
bool yarp::sig::file::write | ( | const Sound & | src, |
const char * | dest | ||
) |
Write a sound to file.
src | sound to write |
dest | name of file (will be a WAV file) |
Definition at line 273 of file SoundFile.cpp.