From d6086d8203ae4f4b45f3d97960788d603fc78e16 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Mon, 9 Jan 2012 17:01:44 +0000 Subject: Implemented filter-settings changeably while Tracker is active. Should also be handy to have a IFilterPtr, for logging... git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@99 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/FaceTrackNoIR.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp') diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index 58c60362..73d201c3 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -133,11 +133,6 @@ void FaceTrackNoIR::setupFaceTrackNoIR() { connect(ui.chkUseEWMA, SIGNAL(stateChanged(int)), this, SLOT(setUseFilter(int))); - // Connect sliders for reduction factor - connect(ui.minSmooth, SIGNAL(valueChanged(int)), this, SLOT(setMinSmooth(int))); - connect(ui.maxSmooth, SIGNAL(valueChanged(int)), this, SLOT(setMaxSmooth(int))); - connect(ui.powCurve, SIGNAL(valueChanged(int)), this, SLOT(setPowCurve(int))); - // Connect slider for smoothing connect(ui.slideSmoothing, SIGNAL(valueChanged(int)), this, SLOT(setSmoothing(int))); @@ -528,10 +523,6 @@ void FaceTrackNoIR::startTracker( ) { tracker->setInvertY (ui.chkInvertY->isChecked() ); tracker->setInvertZ (ui.chkInvertZ->isChecked() ); - tracker->setMinSmooth (ui.minSmooth->value() ); - tracker->setPowCurve (ui.powCurve->value() ); - tracker->setMaxSmooth (ui.maxSmooth->value() ); - tracker->start( QThread::TimeCriticalPriority ); ui.headPoseWidget->show(); @@ -745,24 +736,6 @@ THeadPoseData newdata; } } -/** set the redhold from the slider **/ -void FaceTrackNoIR::setMinSmooth( int redh ) { - Tracker::setMinSmooth ( redh ); - settingsDirty = true; -} - -/** set the redhold from the slider **/ -void FaceTrackNoIR::setPowCurve( int redh ) { - Tracker::setPowCurve ( redh ); - settingsDirty = true; -} - -/** set the redhold from the slider **/ -void FaceTrackNoIR::setMaxSmooth( int redh ) { - Tracker::setMaxSmooth ( redh ); - settingsDirty = true; -} - /** set the smoothing from the slider **/ void FaceTrackNoIR::setSmoothing( int smooth ) { @@ -959,7 +932,7 @@ QLibrary *filterLib; if (ptrXyz) { pFilterDialog = ptrXyz; - pFilterDialog->Initialize( this ); + pFilterDialog->Initialize( this, Tracker::getFilterPtr() ); qDebug() << "FaceTrackNoIR::showFilterControls GetFilterDialog Function Resolved!"; } else { -- cgit v1.2.3