Function rs2_depth_frame_get_units

Function Documentation

float rs2_depth_frame_get_units(const rs2_frame *frame, rs2_error **error)

retrieve the scaling factor to use when converting a depth frame’s get_data() units to meters

Returns:

float - depth, in meters, per 1 unit stored in the frame data