Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st

Difference between revisions of "C++ Wrapper"

From OpenKinect
Jump to: navigation, search
(Using the C++ Wrapper for GL)
(Using the C++ Wrapper for GL)
 
Line 7: Line 7:
 
== Using the C++ Wrapper for GL ==
 
== Using the C++ Wrapper for GL ==
  
The [[C++OpenCvExample]] used a old version of the libfreenect here therefore a modified version of the [https://github.com/OpenKinect/libfreenect/blob/master/wrappers/cpp/cppview.cpp cppview.cpp]
+
The [[C++OpenCvExample]] used a old version of the libfreenect here therefore a modified version of the [https://github.com/OpenKinect/libfreenect/blob/master/wrappers/cpp/cppview.cpp cppview.cpp] as Example to use the libfreenect c++ wrapper
  
 
* [[C++ GL Example]]
 
* [[C++ GL Example]]

Latest revision as of 23:36, 9 January 2011

To use the C++ interface to libfreenect:

  • include libfreenect.hpp
  • derive a class from FreenectDevice
  • define callbacks.

See the example cppview.cpp, it is included in the repository.

Using the C++ Wrapper for GL

The C++OpenCvExample used a old version of the libfreenect here therefore a modified version of the cppview.cpp as Example to use the libfreenect c++ wrapper

Using the C++ Wrapper for OpenCV

In order to use the C++ wrapper together with OpenCV, you will need to derive a class from FreenectDevice that implements callbacks and get() functions compatible with OpenCV.