YARP
Yet Another Robot Platform
ImageFile.h File Reference
#include <string>
#include <yarp/sig/Image.h>
+ Include dependency graph for ImageFile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 yarp
 The main, catch-all namespace for YARP.
 
 yarp::sig
 Signal processing.
 
 yarp::sig::file
 Image file operations.
 

Enumerations

enum  yarp::sig::file::image_fileformat {
  yarp::sig::file::FORMAT_NULL,
  yarp::sig::file::FORMAT_ANY,
  yarp::sig::file::FORMAT_PGM,
  yarp::sig::file::FORMAT_PPM,
  yarp::sig::file::FORMAT_JPG,
  yarp::sig::file::FORMAT_NUMERIC,
  yarp::sig::file::FORMAT_NUMERIC_COMPRESSED,
  yarp::sig::file::FORMAT_PNG
}
 

Functions

bool yarp::sig::file::read (ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
 
bool yarp::sig::file::read (ImageOf< PixelBgr > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
 
bool yarp::sig::file::read (ImageOf< PixelRgba > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
 
bool yarp::sig::file::read (ImageOf< PixelMono > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
 
bool yarp::sig::file::read (ImageOf< PixelFloat > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
 
bool yarp::sig::file::write (const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
 
bool yarp::sig::file::write (const ImageOf< PixelBgr > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
 
bool yarp::sig::file::write (const ImageOf< PixelRgba > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
 
bool yarp::sig::file::write (const ImageOf< PixelMono > &src, const std::string &dest, image_fileformat format=FORMAT_PGM)
 
bool yarp::sig::file::write (const ImageOf< PixelFloat > &src, const std::string &dest, image_fileformat format=FORMAT_NUMERIC)
 
bool yarp::sig::file::write (const Image &src, const std::string &dest, image_fileformat format=FORMAT_PPM)