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

a collection of simple image utility functions More...

#include <ImageUtil.hpp>

Static Public Member Functions

static void RGB2GRAY (const Image &src, Image &dst)
 converts an image of RGB type into an image of GRAY type.
 
static void reset (Image &img, int color=0)
 sets the value of all channels of an image to color.
 
static void flipX (Image &img)
 flips the image around the x-axis (horizontal) More...
 
static void flipY (Image &img)
 flips the image around the y-axis (vertical) More...
 
static rw::core::Ptr< rw::sensor::ImagemakeDepthImage (const rw::geometry::PointCloud &cloud)
 
static rw::core::Ptr< rw::sensor::ImagemakeDepthImage (const rw::geometry::PointCloud &cloud, float min, float max)
 

Detailed Description

a collection of simple image utility functions

Member Function Documentation

◆ flipX()

static void flipX ( Image img)
static

flips the image around the x-axis (horizontal)

Parameters
img

◆ flipY()

static void flipY ( Image img)
static

flips the image around the y-axis (vertical)

Parameters
img

◆ makeDepthImage() [1/2]

static rw::core::Ptr<rw::sensor::Image> makeDepthImage ( const rw::geometry::PointCloud cloud)
static

convert pointcloud to a depth image. Colors are scaled to min and ax distance of points.

Parameters
cloud[in] cloud to convert to image
Returns
image showing the pointcloud as a depth image

◆ makeDepthImage() [2/2]

static rw::core::Ptr<rw::sensor::Image> makeDepthImage ( const rw::geometry::PointCloud cloud,
float  min,
float  max 
)
static

convert pointcloud to a depth image. Colors are scaled to min and max distance specified by user

Parameters
cloud[in] cloud to convert to image
min[in] the minimum distance corresponding to black
max[in] the maximum distance corresponding to white
Returns
image showing the pointcloud as a depth image

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