summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-14 11:16:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-14 11:16:14 +0200
commit0dcc0fab8a9c088840c5e7ff4b2dc1b64b08ea97 (patch)
tree779e3b895a30b16d6c1ea81a22776a67a0231ed8 /facetracknoir
parent09fdfc2df0ae38afb6314d734afe2d3d00d57671 (diff)
some initial wizard stuff
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/wizard.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/facetracknoir/wizard.cpp b/facetracknoir/wizard.cpp
index 1c7ab5b3..e432ddf5 100644
--- a/facetracknoir/wizard.cpp
+++ b/facetracknoir/wizard.cpp
@@ -6,6 +6,39 @@ Wizard::Wizard() : QWizard(nullptr)
connect(this, SIGNAL(accepted()), this, SLOT(set_data()));
}
+static constexpr double tz[][2] = {
+ { 16.5327205657959, 13.0232553482056 },
+ { 55.4535026550293, 100 },
+ { 56.8312301635742, 100 },
+ { -1, -1 },
+};
+
+static constexpr double yaw[][2] = {
+ { 10.7462686567164, 20.9302325581395 },
+ { 41.9517784118652, 180 },
+ { -1, -1 },
+};
+
+static constexpr double pitch[][2] = {
+ { 10.1262916188289, 27.6279069767442 },
+ { 32.4454649827784, 180 },
+ { -1, -1 },
+};
+
+static constexpr double roll[][2] = {
+ { 12.3995409011841, 25.9534893035889 },
+ { 54.3513221740723, 180 },
+ { -1, -1 },
+};
+
+static void set_mapping(Mapping& m, double* spline[2])
+{
+ m.opts.altp = false;
+ m.curve.removeAllPoints();
+ for (int i = 0; spline[i][0] >= 0; i++)
+ m.curve.addPoint(QPointF(spline[i][0], spline[i][1]));
+}
+
void Wizard::set_data()
{
Model m;
@@ -22,5 +55,7 @@ void Wizard::set_data()
settings_pt pt;
main_settings s;
+ pt.threshold = 31;
+
qDebug() << "wizard done" << "model" << m << "camera-mode" << camera_mode;
}