Skip to content

suggest adding freenect_sync_camera_to_world() to c_sync #294

Description

@martyvona

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions