Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
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/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...

Namespaces

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

Typedefs

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

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.
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.