Drake
Drake C++ Documentation
image.h File Reference
#include <limits>
#include <utility>
#include <variant>
#include <vector>
#include "drake/common/drake_assert.h"
#include "drake/common/drake_copyable.h"
#include "drake/common/drake_throw.h"
#include "drake/common/reset_after_move.h"
#include "drake/systems/sensors/pixel_types.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Image< kPixelType >
 Simple data format for Image. More...
 
class  Image< kPixelType >
 Simple data format for Image. More...
 

Namespaces

 drake
 
 drake::systems
 
 drake::systems::sensors
 

Typedefs

using ImageRgb8U = Image< PixelType::kRgb8U >
 The type for RGB image where the each channel has the type of uint8_t. More...
 
using ImageBgr8U = Image< PixelType::kBgr8U >
 The type for BGR image where the each channel has the type of uint8_t. More...
 
using ImageRgba8U = Image< PixelType::kRgba8U >
 The type for RGBA image where the each channel has the type of uint8_t. More...
 
using ImageBgra8U = Image< PixelType::kBgra8U >
 The type for BGRA image where the each channel has the type of uint8_t. More...
 
using ImageDepth32F = Image< PixelType::kDepth32F >
 The type for depth image where the channel has the type of float. More...
 
using ImageDepth16U = Image< PixelType::kDepth16U >
 The type for depth image where the channel has the type of uint16_t. More...
 
using ImageLabel16I = Image< PixelType::kLabel16I >
 The type for label image where the channel has the type of int16_t. More...
 
using ImageGrey8U = Image< PixelType::kGrey8U >
 The type for greyscale image where the channel has the type of uint8_t. More...
 
using ImageAny = std::variant< ImageBgr8U, ImageBgra8U, ImageDepth16U, ImageDepth32F, ImageGrey8U, ImageRgb8U, ImageRgba8U, ImageLabel16I >
 A sum type of all built-in images types. More...
 

Functions

void ConvertDepth32FTo16U (const ImageDepth32F &input, ImageDepth16U *output)
 Converts a single channel 32-bit float depth image with depths in meters to a single channel 16-bit unsigned int depth image with depths in millimeters. More...
 
void ConvertDepth16UTo32F (const ImageDepth16U &input, ImageDepth32F *output)
 Converts a single channel 16-bit unsigned int depth image with depths in millimeters to a single channel 32-bit float depth image with depths in meters. More...