MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / convertDepthToColorCoordinates

Method convertDepthToColorCoordinates

src/openni2/VideoStream.cpp:275–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275OniStatus VideoStream::convertDepthToColorCoordinates(StreamBase* colorStream, int depthX, int depthY, OniDepthPixel depthZ, int* pColorX, int* pColorY)
276{
277 if (!reg)
278 {
279 return ONI_STATUS_NOT_SUPPORTED;
280 }
281
282 float cx, cy;
283 const float dz = depthZ;
284 reg->depthToColor(depthX, depthY, dz, cx, cy);
285
286 *pColorX = cx;
287 *pColorY = cy;
288
289 return ONI_STATUS_OK;
290}
291
292}

Callers

nothing calls this directly

Calls 1

depthToColorMethod · 0.80

Tested by

no test coverage detected