hi
i dont know witch release you working with (excuse my english)
my source code is older: (libfreenect.h)
you can make achange in your code.....
or
if you have a running example (kinect and opencv)
port my opencv-stuff into your code:
the interface from kinect to opencv is:
------------------------------
// save output for colorDetections()
cv::imwrite("original.jpg",rgbMat);
// read
cv::Mat img1 = cv::imread("original.jpg",1);
// working with frame for Colordetections
frame = cvLoadImage("original.jpg", 1);
--------------------------
and make a new kinect-code with your libfreenect.h (functions)
regards nomad
opi
cv::wirte("name1.jpg", cv-image)----but you canh hat for a release