#include <rs_frame.hpp>
◆ depth_frame()
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 |
◆ get_distance()
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
◆ get_units()
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
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/librealsense-2.54.2-build/librealsense-2.54.2/include/librealsense2/hpp/rs_frame.hpp