Wrapper class that represent a depth value as it occurs in RGB-D images. More...
#include <image.h>
Public Member Functions | |
| Depth (const int &value) | |
| Depth (const double &value) | |
| bool | isValid () const |
| float | getFloatValue () const |
| int | getIntValue () const |
| Depth | operator- (const Depth &other) const |
| Depth | operator+ (const Depth &other) const |
| Depth & | operator+= (const Depth &other) |
Static Public Attributes | |
| static const Depth | INVALID |
| Static value used when the depth is invalid, e.gs outside the image. | |
Wrapper class that represent a depth value as it occurs in RGB-D images.
The internal representation is an int that represent the depth (distance) in millimeter precision.
A depth of zero represents an invalid depth that can be used to represent a missing depth value as it occurs in RGB-D cameras such as the Microsoft Kinect.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
1.8.1.2