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

#include <ImageUtil.hpp>

Static Public Member Functions

static rw::sensor::Image::Ptr toRwImage (const QImage &srcimg)
 Convert Qt image to RobWork image format. More...
 
static void toRwImage (const QImage &srcimg, rw::sensor::Image &dstimg)
 Convert Qt image to RobWork image format. More...
 
static QImage * toQtImage (const rw::sensor::Image &srcimg)
 Convert RobWork image to Qt image format. More...
 

Detailed Description

utility functions (mostly for conversion) for using thw RobWork Image class in Qt contexts

Member Function Documentation

◆ toQtImage()

static QImage* toQtImage ( const rw::sensor::Image srcimg)
static

Convert RobWork image to Qt image format.

Parameters
srcimg[in] the RobWork image.
Returns
a new equivalent QImage.

◆ toRwImage() [1/2]

static rw::sensor::Image::Ptr toRwImage ( const QImage &  srcimg)
static

Convert Qt image to RobWork image format.

Parameters
srcimg[in] the QImage.
Returns
a new equivalent RobWork image.

◆ toRwImage() [2/2]

static void toRwImage ( const QImage &  srcimg,
rw::sensor::Image dstimg 
)
static

Convert Qt image to RobWork image format.

Parameters
srcimg[in] the QImage.
dstimg[out] the RobWork image.

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