def convert_world_to_depth(depthStream, worldX, worldY, worldZ):
"""const VideoStream& depthStream, float worldX, float worldY, float worldZ"""
out_depthX = ctypes.c_float()
out_depthY = ctypes.c_float()
out_depthZ = ctypes.c_float()
c_api.oniCoordinateConverterWorldToDepth(depthStream._handle, worldX, worldY, worldZ,
ctypes.byref(out_depthX), ctypes.byref(out_depthY), ctypes.byref(out_depthZ))
return out_depthX.value, out_depthY.value, out_depthZ.value
评论列表
文章目录