summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FaceTrackNoIR.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-10-05 20:40:38 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-10-05 20:40:38 +0000
commit6999bf3ef1c30d5af447c8cdd98213d1b1106a30 (patch)
tree7b72d37f030125bc16e60cb6c7d92a0a7baa6dae /FaceTrackNoIR/FaceTrackNoIR.cpp
parent9a573dbf66f8baddf1aabe79960c8658cbb0ee9e (diff)
Beta Curve configuration seems to work...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@22 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r--FaceTrackNoIR/FaceTrackNoIR.cpp75
1 files changed, 1 insertions, 74 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp
index d3511c16..ef579436 100644
--- a/FaceTrackNoIR/FaceTrackNoIR.cpp
+++ b/FaceTrackNoIR/FaceTrackNoIR.cpp
@@ -84,14 +84,7 @@ void FaceTrackNoIR::setupFaceTrackNoIR() {
connect(ui.btnStartTracker, SIGNAL(clicked()), this, SLOT(startTracker()));
connect(ui.btnStopTracker, SIGNAL(clicked()), this, SLOT(stopTracker()));
- // Connect sliders for sensitivity
- connect(ui.sensYaw, SIGNAL(valueChanged(int)), this, SLOT(setSensYaw(int)));
- connect(ui.sensRoll, SIGNAL(valueChanged(int)), this, SLOT(setSensRoll(int)));
- connect(ui.sensPitch, SIGNAL(valueChanged(int)), this, SLOT(setSensPitch(int)));
- connect(ui.sensX, SIGNAL(valueChanged(int)), this, SLOT(setSensX(int)));
- connect(ui.sensY, SIGNAL(valueChanged(int)), this, SLOT(setSensY(int)));
- connect(ui.sensZ, SIGNAL(valueChanged(int)), this, SLOT(setSensZ(int)));
-
+ // Connect checkboxes
connect(ui.chkInvertYaw, SIGNAL(stateChanged(int)), this, SLOT(setInvertYaw(int)));
connect(ui.chkInvertRoll, SIGNAL(stateChanged(int)), this, SLOT(setInvertRoll(int)));
connect(ui.chkInvertPitch, SIGNAL(stateChanged(int)), this, SLOT(setInvertPitch(int)));
@@ -109,8 +102,6 @@ void FaceTrackNoIR::setupFaceTrackNoIR() {
connect(ui.redY, SIGNAL(valueChanged(int)), this, SLOT(setRedY(int)));
connect(ui.redZ, SIGNAL(valueChanged(int)), this, SLOT(setRedZ(int)));
- connect(ui.slideNeutralZone, SIGNAL(valueChanged(int)), this, SLOT(setNeutralZone(int)));
-
// Connect slider for smoothing
connect(ui.slideSmoothing, SIGNAL(valueChanged(int)), this, SLOT(setSmoothing(int)));
@@ -288,13 +279,6 @@ void FaceTrackNoIR::save() {
iniFile.beginGroup ( "Tracking" );
iniFile.setValue ( "Smooth", ui.slideSmoothing->value() );
- iniFile.setValue ( "NeutralZone", ui.slideNeutralZone->value() );
- iniFile.setValue ( "sensYaw", ui.sensYaw->value() );
- iniFile.setValue ( "sensPitch", ui.sensPitch->value() );
- iniFile.setValue ( "sensRoll", ui.sensRoll->value() );
- iniFile.setValue ( "sensX", ui.sensX->value() );
- iniFile.setValue ( "sensY", ui.sensY->value() );
- iniFile.setValue ( "sensZ", ui.sensZ->value() );
iniFile.setValue ( "invertYaw", ui.chkInvertYaw->isChecked() );
iniFile.setValue ( "invertPitch", ui.chkInvertPitch->isChecked() );
iniFile.setValue ( "invertRoll", ui.chkInvertRoll->isChecked() );
@@ -351,13 +335,6 @@ void FaceTrackNoIR::loadSettings() {
iniFile.beginGroup ( "Tracking" );
ui.slideSmoothing->setValue (iniFile.value ( "Smooth", 10 ).toInt());
- ui.slideNeutralZone->setValue (iniFile.value ( "NeutralZone", 5 ).toInt());
- ui.sensYaw->setValue (iniFile.value ( "sensYaw", 100 ).toInt());
- ui.sensPitch->setValue (iniFile.value ( "sensPitch", 100 ).toInt());
- ui.sensRoll->setValue (iniFile.value ( "sensRoll", 100 ).toInt());
- ui.sensX->setValue (iniFile.value ( "sensX", 100 ).toInt());
- ui.sensY->setValue (iniFile.value ( "sensY", 100 ).toInt());
- ui.sensZ->setValue (iniFile.value ( "sensZ", 100 ).toInt());
ui.chkInvertYaw->setChecked (iniFile.value ( "invertYaw", 0 ).toBool());
ui.chkInvertPitch->setChecked (iniFile.value ( "invertPitch", 0 ).toBool());
ui.chkInvertRoll->setChecked (iniFile.value ( "invertRoll", 0 ).toBool());
@@ -426,16 +403,8 @@ void FaceTrackNoIR::startTracker( ) {
//
tracker->setup( ui.headPoseWidget , this);
tracker->setSmoothing ( ui.slideSmoothing->value() );
- tracker->setNeutralZone ( ui.slideNeutralZone->value() );
tracker->setUseFilter (ui.chkUseEWMA->isChecked() );
- tracker->setSensYaw (ui.sensYaw->value() );
- tracker->setSensPitch (ui.sensPitch->value() );
- tracker->setSensRoll (ui.sensRoll->value() );
- tracker->setSensX (ui.sensX->value() );
- tracker->setSensY (ui.sensY->value() );
- tracker->setSensZ (ui.sensZ->value() );
-
tracker->setInvertYaw (ui.chkInvertYaw->isChecked() );
tracker->setInvertPitch (ui.chkInvertPitch->isChecked() );
tracker->setInvertRoll (ui.chkInvertRoll->isChecked() );
@@ -514,42 +483,6 @@ void FaceTrackNoIR::stopTracker( ) {
ui.btnShowServerControls->setEnabled ( true );
}
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensYaw( int sens ) {
- Tracker::setSensYaw ( sens );
- settingsDirty = true;
-}
-
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensPitch( int sens ) {
- Tracker::setSensPitch ( sens );
- settingsDirty = true;
-}
-
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensRoll( int sens ) {
- Tracker::setSensRoll ( sens );
- settingsDirty = true;
-}
-
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensX( int sens ) {
- Tracker::setSensX ( sens );
- settingsDirty = true;
-}
-
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensY( int sens ) {
- Tracker::setSensY ( sens );
- settingsDirty = true;
-}
-
-/** set the sensibility from the slider **/
-void FaceTrackNoIR::setSensZ( int sens ) {
- Tracker::setSensZ ( sens );
- settingsDirty = true;
-}
-
/** set the invert from the checkbox **/
void FaceTrackNoIR::setInvertYaw( int invert ) {
Tracker::setInvertYaw ( (invert != 0)?true:false );
@@ -628,12 +561,6 @@ void FaceTrackNoIR::setRedZ( int redh ) {
settingsDirty = true;
}
-/** set the Neutral Zone for rotations from the slider **/
-void FaceTrackNoIR::setNeutralZone( int angle ) {
- Tracker::setNeutralZone ( angle );
- settingsDirty = true;
-}
-
/** set the smoothing from the slider **/
void FaceTrackNoIR::setSmoothing( int smooth ) {