Function rs2_get_depth_scale

Function Documentation

float rs2_get_depth_scale(rs2_sensor *sensor, rs2_error **error)

When called on a depth sensor, this method will return the number of meters represented by a single depth unit

Parameters:
  • sensor[in] depth sensor

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

the number of meters represented by a single depth unit