Hello everyone,
Everytime I try to use convertProjToRealCoords from DepthSensor it crashes my program. Here is my bit of code
auto depthTracker = DepthSensor::create();
DepthFrame::Ptr frame = depthTracker->getDepthFrame();
if (depthTracker != nullptr) {
if (frame != nullptr) {
Vector3 point = depthTracker->convertProjToRealCoords(28, 13, frame->getData()[13 * depthTracker->getOutputMode().xres + 28]);
}
}
As you can see, nothing too complicated. What am I doing wrong ?