def convert_depth_to_world(depthStream, depthX, depthY, depthZ):
"""const VideoStream& depthStream, float depthX, float depthY, float depthZ, float* pWorldX, float* pWorldY, float* pWorldZ"""
out_depthX = ctypes.c_float()
out_depthY = ctypes.c_float()
out_depthZ = ctypes.c_float()
c_api.oniCoordinateConverterDepthToWorld(depthStream._handle, depthX, depthY, depthZ,
ctypes.byref(out_depthX), ctypes.byref(out_depthY), ctypes.byref(out_depthZ))
return out_depthX.value, out_depthY.value, out_depthZ.value
评论列表
文章目录