summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-05-28 13:09:02 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-05-28 13:09:02 +0000
commit7357858cee1c39ad25f187db422cb4ba0335ed77 (patch)
tree70362bcc792aeb0afd90672560acf0e44faaa80d
parent2852ec626fec6d4955a41202feec6be27e776e93 (diff)
Added filter setting faceAPI
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@85 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r--faceAPI/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/faceAPI/main.cpp b/faceAPI/main.cpp
index 403340a5..aeb2cd50 100644
--- a/faceAPI/main.cpp
+++ b/faceAPI/main.cpp
@@ -370,8 +370,9 @@ void run()
//
// Process the command sent by FaceTrackNoIR.
//
- sprintf_s(msg, "Command: %d\n", pMemData->command);
+ sprintf_s(msg, "Command: %d, \n", pMemData->command, pMemData->par_val_int);
OutputDebugStringA(msg);
+ std::cout << msg;
if (pMemData) {
//
@@ -407,6 +408,11 @@ void run()
pMemData->command = 0; // Reset
break;
+ case FT_SM_SET_PAR_FILTER:
+ THROW_ON_ERROR(smHTV2SetHeadPoseFilterLevel(engine_handle, pMemData->par_val_int));
+ pMemData->command = 0; // Reset
+ break;
+
case FT_SM_SHOW_CAM:
THROW_ON_ERROR(smEngineShowCameraControlPanel(engine_handle));
pMemData->command = 0; // Reset