xvsdk  3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
xv::DepthImage Struct Reference

An image provided by a TOF camera. More...

#include <xv-types.h>

Public Types

enum  Type {
  Depth_16 = 0, Depth_32, IR, Cloud,
  Raw, Eeprom, IQ
}
 

Public Member Functions

RgbImage toRgb () const
 Convert to a xv::RgbImage.
 

Public Attributes

Type type = Type::Depth_32
 
std::size_t width = 0
 width of the image (in pixel)
 
std::size_t height = 0
 height of the image (in pixel)
 
double confidence = 0.0
 confidence of depth [0.0,1.0]
 
std::shared_ptr< const std::uint8_t > data = nullptr
 
unsigned int dataSize = 0
 image of depth
 
double hostTimestamp = std::numeric_limits<double>::infinity()
 host timestamp of the physical measurement (in second based on the std::chrono::steady_clock).
 
std::int64_t edgeTimestampUs = (std::numeric_limits<std::int64_t>::min)()
 timestamp of the physical measurement (in microsecond based on edge clock).
 

Detailed Description

An image provided by a TOF camera.

Note
There are two manufacturers of TOF camera, Pmd and sony. Pmd TOF depth type is Depth_32,sony TOF depth type is Depth_16. Cloud type just use for Pmd point cloud,the coordinate system of the point cloud is the camera coordinate system, and the data unit is meters. Length, width and depth are in meters use Pmd TOF. Length, width and depth are in metmillimeterers use sony TOF.

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