summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 05:19:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 05:19:16 +0200
commit9a0be62918cd1c8a4c8736d40707ed5f5560623f (patch)
treeeea7130e3cb1e6ea2fafdf0e6f4acf27f1692d64
parent2d74bdc525992929f8ba584edeedb99b9a695c57 (diff)
Support 1:1 mapping up to 180 degrees for inertial trackers
-rw-r--r--CMakeLists.txt8
-rw-r--r--facetracknoir/ftnoir_curves.ui92
-rw-r--r--facetracknoir/tracker.h12
3 files changed, 55 insertions, 57 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f10b370..2217de2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ include_directories(${CMAKE_SOURCE_DIR})
if(NOT SDK_FACEAPI_ONLY)
find_package(OpenCV REQUIRED)
- find_package(Qt4 COMPONENTS QtCore QtGui QtXml QtOpenGL QtNetwork REQUIRED)
+ find_package(Qt4 COMPONENTS QtCore QtGui QtDesigner QtXml QtOpenGL QtNetwork REQUIRED)
macro(QT4_WRAP_CPP outfiles)
# get include dirs
QT4_GET_MOC_FLAGS(moc_flags)
@@ -65,9 +65,7 @@ if(NOT SDK_FACEAPI_ONLY)
include_directories(${QXT_QXTGUI_INCLUDE_DIR}/QxtGui)
endif()
endif()
- if(NOT WIN32)
- INCLUDE_DIRECTORIES(${QT_QTDESIGNER_INCLUDE_DIR})
- endif()
+ INCLUDE_DIRECTORIES(${QT_QTDESIGNER_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/qfunctionconfigurator)
@@ -319,7 +317,7 @@ endif()
add_library(ftnoir-pose-widget SHARED ${ftnoir-pose-widget-c} ${ftnoir-pose-widget-moc} ${ftnoir-pose-widget-rcc})
target_link_libraries(ftnoir-pose-widget ${MY_QT_LIBS} ${OPENGL_gl_LIBRARY})
- add_library(ftnoir-spline-widget SHARED ${ftnoir-spline-widget-c} ${ftnoir-spline-widget-moc} ${MY_QT_LIBS})
+ add_library(ftnoir-spline-widget SHARED ${ftnoir-spline-widget-c} ${ftnoir-spline-widget-moc} ${MY_QT_LIBS} ${QT_QTDESIGNER_LIBRARY_RELEASE})
target_link_libraries(ftnoir-spline-widget ${MY_QT_LIBS})
add_library(ftnoir-filter-accela SHARED ${ftnoir-filter-accela-c} ${ftnoir-filter-accela-moc} ${ftnoir-filter-accela-uih} ${ftnoir-filter-accela-rcc})
diff --git a/facetracknoir/ftnoir_curves.ui b/facetracknoir/ftnoir_curves.ui
index 5bbe48be..0b368816 100644
--- a/facetracknoir/ftnoir_curves.ui
+++ b/facetracknoir/ftnoir_curves.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>718</width>
- <height>698</height>
+ <width>628</width>
+ <height>667</height>
</rect>
</property>
<property name="windowTitle">
@@ -113,13 +113,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="colorBezier">
<color>
@@ -159,13 +159,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="colorBezier">
<color>
@@ -197,13 +197,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -246,13 +246,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -287,13 +287,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -336,13 +336,13 @@ color: rgb(255, 255, 255);
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>180</number>
</property>
<property name="maxOutputEGU" stdset="0">
<number>180</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>3</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -372,18 +372,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>0</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -421,18 +421,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>340</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -462,18 +462,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>0</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -511,18 +511,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>340</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -552,18 +552,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>0</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -601,18 +601,18 @@ color: rgb(255, 255, 255);
<rect>
<x>0</x>
<y>340</y>
- <width>595</width>
- <height>260</height>
+ <width>555</width>
+ <height>160</height>
</rect>
</property>
<property name="maxInputEGU" stdset="0">
- <number>60</number>
+ <number>100</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>200</number>
+ <number>100</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
- <number>9</number>
+ <number>5</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
<number>1</number>
@@ -654,7 +654,7 @@ color: rgb(255, 255, 255);
</property>
<property name="minimumSize">
<size>
- <width>58</width>
+ <width>54</width>
<height>0</height>
</size>
</property>
@@ -679,7 +679,7 @@ color: rgb(255, 255, 255);
</property>
<property name="minimumSize">
<size>
- <width>58</width>
+ <width>54</width>
<height>0</height>
</size>
</property>
diff --git a/facetracknoir/tracker.h b/facetracknoir/tracker.h
index 8bf1f6dc..59e0f19c 100644
--- a/facetracknoir/tracker.h
+++ b/facetracknoir/tracker.h
@@ -192,12 +192,12 @@ public:
THeadPoseDOF axes[6];
HeadPoseData()
{
- axes[TX] = THeadPoseDOF("tx","tx_alt", 60, 200, 60, 200);
- axes[TY] = THeadPoseDOF("ty","ty_alt", 60, 200, 60, 200);
- axes[TZ] = THeadPoseDOF("tz","tz_alt", 60, 200, 60, 200);
- axes[RX] = THeadPoseDOF("rx", "rx_alt", 60, 180, 60, 180);
- axes[RY] = THeadPoseDOF("ry", "ry_alt", 60, 180, 60, 90);
- axes[RZ] = THeadPoseDOF("rz", "rz_alt", 60, 180, 60, 180);
+ axes[TX] = THeadPoseDOF("tx","tx_alt", 100, 100, 100, 100);
+ axes[TY] = THeadPoseDOF("ty","ty_alt", 100, 100, 100, 100);
+ axes[TZ] = THeadPoseDOF("tz","tz_alt", 100, 100, 100, 100);
+ axes[RX] = THeadPoseDOF("rx", "rx_alt", 180, 180, 180, 180);
+ axes[RY] = THeadPoseDOF("ry", "ry_alt", 180, 180, 180, 180);
+ axes[RZ] = THeadPoseDOF("rz", "rz_alt", 180, 180, 180, 180);
}
};