summaryrefslogtreecommitdiffhomepage
path: root/faceAPI/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'faceAPI/main.cpp')
-rw-r--r--faceAPI/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/faceAPI/main.cpp b/faceAPI/main.cpp
index 31706f80..48b7300b 100644
--- a/faceAPI/main.cpp
+++ b/faceAPI/main.cpp
@@ -323,9 +323,11 @@ void run()
}
// Create and show a video-display window
- smVideoDisplayHandle video_display_handle = 0;
+ // Set the initial filter-level, from the INI-file
+ smVideoDisplayHandle video_display_handle = 0;
if (pMemData) {
THROW_ON_ERROR(smVideoDisplayCreate(engine_handle,&video_display_handle,(smWindowHandle) pMemData->handle,TRUE));
+ THROW_ON_ERROR(smHTV2SetHeadPoseFilterLevel(engine_handle, pMemData->initial_filter_level));
}
else {
THROW_ON_ERROR(smVideoDisplayCreate(engine_handle,&video_display_handle,0,TRUE));