[][src]Function realsense_sys::rs2_depth_frame_get_distance

pub unsafe extern "C" fn rs2_depth_frame_get_distance(
    frame_ref: *const rs2_frame,
    x: c_int,
    y: c_int,
    error: *mut *mut rs2_error
) -> f32

Given the 2D depth coordinate (x,y) provide the corresponding depth in metric units \param[in] frame_ref 2D depth pixel coordinates (Left-Upper corner origin) \param[in] x,y 2D depth pixel coordinates (Left-Upper corner origin) \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored