本文整理汇总了C++中xn::GestureGenerator::RemoveGesture方法的典型用法代码示例。如果您正苦于以下问题:C++ GestureGenerator::RemoveGesture方法的具体用法?C++ GestureGenerator::RemoveGesture怎么用?C++ GestureGenerator::RemoveGesture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xn::GestureGenerator
的用法示例。
在下文中一共展示了GestureGenerator::RemoveGesture方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Gesture_Recognized
// Define hand & gesture recognition callbacks
void XN_CALLBACK_TYPE Gesture_Recognized(
xn::GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition,
void* pCookie)
{
gesture_generator.RemoveGesture(strGesture);
hands_generator.StartTracking(*pEndPosition);
}
示例2: GestureRecognized
void XN_CALLBACK_TYPE Kinect::GestureRecognized( xn::GestureGenerator& generator,const XnChar* strGesture,
const XnPoint3D* pIDPosition,const XnPoint3D* pEndPosition,void* pCookie )
{
Kinect * kinect = ((Kinect *)pCookie);
if( strcmp( strGesture, "Wave" ) == 0 )
{
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
}
else if( strcmp( strGesture, "RaiseHand" ) == 0 )
{
generator.RemoveGesture(strGesture);
kinect->m_HandsGenerator.StartTracking( *pEndPosition );
}
}
示例3: Gesture_Recognized
//gesture callbacks
void XN_CALLBACK_TYPE Gesture_Recognized(xn::GestureGenerator& generator, const XnChar* strGesture, const XnPoint3D* pIDPosition, const XnPoint3D* pEndPosition, void* pCookie) {
printf("{\"gesture\":{\"type\":\"%s\"}, \"elapsed\":%.3f}}\n", strGesture, clockAsFloat(last));
gestureGenerator.RemoveGesture(strGesture);
handsGenerator.StartTracking(*pEndPosition);
}
示例4: GestureGenerator_RemoveGesture_wrapped
void GestureGenerator_RemoveGesture_wrapped(xn::GestureGenerator& self, std::string gesture) {
checkValid(self);
check( self.RemoveGesture(gesture.c_str()) );
}