#include <rs_frame.hpp>
Definition at line 809 of file rs_frame.hpp.
rs2::depth_frame::depth_frame |
( |
const frame & |
f | ) |
|
|
inline |
Extends the video_frame class with additional depth related attributes and functions
- Parameters
-
[in] | frame | - existing frame instance |
Definition at line 816 of file rs_frame.hpp.
float rs2::depth_frame::get_distance |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
inline |
Provide the depth in meters at the given pixel
- Parameters
-
[in] | int | x - pixel's x coordinate. |
[in] | int | y - pixel's y coordinate. |
- Returns
- float - depth in metric units at given pixel
Definition at line 833 of file rs_frame.hpp.
float rs2::depth_frame::get_units |
( |
| ) |
const |
|
inline |
Provide the scaling factor to use when converting from get_data() units to meters
- Returns
- float - depth, in meters, per 1 unit stored in the frame data
Definition at line 845 of file rs_frame.hpp.
The documentation for this class was generated from the following file: