RobWorkProject
Public Member Functions | Static Public Member Functions | List of all members
PGMLoader Class Reference

Loads images in Portable Gray Map (PGM) format. More...

#include <PGMLoader.hpp>

Inherits ImageLoader.

Public Member Functions

rw::sensor::Image::Ptr loadImage (const std::string &filename)
 
std::vector< std::string > getImageFormats ()
 get the list of supported image formats (as extensions) example (PNG,PGM,GIF) More...
 
- Public Member Functions inherited from ImageLoader
virtual ~ImageLoader ()
 destructor
 
virtual bool isImageSupported (const std::string &format)
 

Static Public Member Functions

static rw::sensor::Image::Ptr load (const std::string &filename)
 

Additional Inherited Members

- Public Types inherited from ImageLoader
typedef rw::common::Ptr< ImageLoaderPtr
 smart pointer type
 

Detailed Description

Loads images in Portable Gray Map (PGM) format.

The image format is quite simple and editors like Gimp and Photoshop are able to view and edit this format.

Member Function Documentation

◆ getImageFormats()

std::vector<std::string> getImageFormats ( )
virtual

get the list of supported image formats (as extensions) example (PNG,PGM,GIF)

Returns

Implements ImageLoader.

◆ load()

static rw::sensor::Image::Ptr load ( const std::string &  filename)
static
Parameters
filename[in] name of the file that is to be loaded.
Returns
if loaded successfully a pointer to the image is returned else NULL

◆ loadImage()

rw::sensor::Image::Ptr loadImage ( const std::string &  filename)
virtual

Parameters
filename[in] name of the file that is to be loaded.
Returns
if loaded successfully a pointer to the image is returned else NULL

Implements ImageLoader.


The documentation for this class was generated from the following file: