Image file operations. More...
Image file operations.
Classes | |
class | soundStreamReader |
Enumerations | |
enum | image_fileformat { FORMAT_NULL , FORMAT_ANY , FORMAT_PGM , FORMAT_PPM , FORMAT_JPG , FORMAT_NUMERIC , 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... | |
Enumerator | |
---|---|
FORMAT_NULL | |
FORMAT_ANY | |
FORMAT_PGM | |
FORMAT_PPM | |
FORMAT_JPG | |
FORMAT_NUMERIC | |
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 683 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelFloat > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 774 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelMono > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 748 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgb > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 656 of file ImageFile.cpp.
bool yarp::sig::file::read | ( | ImageOf< PixelRgba > & | dest, |
const std::string & | src, | ||
image_fileformat | format = FORMAT_ANY |
||
) |
Definition at line 710 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 903 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 825 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 890 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 873 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 804 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 849 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.