Suggest adding something like freenect_sync_camera_to_world() in the c_sync wrapper. Afaik there would be no other way to access that functionality for a kinect being used via the c_sync interface.
In libfreenect_sync.h add
int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index);
and then in libfreenect_sync.c add
include "libfreenect-registration.h"
int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index) {
if (runloop_enter(index)) return -1;
freenect_camera_to_world(kinects[index]->dev, cx, cy, wz, wx, wy);
runloop_exit();
return 0;
}
Suggest adding something like freenect_sync_camera_to_world() in the c_sync wrapper. Afaik there would be no other way to access that functionality for a kinect being used via the c_sync interface.
In libfreenect_sync.h add
int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index);
and then in libfreenect_sync.c add
include "libfreenect-registration.h"
int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index) {
if (runloop_enter(index)) return -1;
freenect_camera_to_world(kinects[index]->dev, cx, cy, wz, wx, wy);
runloop_exit();
return 0;
}