RobWorkProject  23.9.11-
Public Member Functions | Static Public Member Functions | List of all members
PPMLoader Class Reference

Loads images in Portable Pixel Map (PPM) format. More...

#include <PPMLoader.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::core::Ptr< ImageLoaderPtr
 smart pointer type
 

Detailed Description

Loads images in Portable Pixel Map (PPM) 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: