4 Details of Initialization
During initialization of
the system, we need to determine a
rotation matrix
R and a
translation vector
t to synthesize the
3D information captured by
two cameras,
KA
and
KB.
This
After installing and
placing the two Kinects appropriately –
nearly orthogonal to each
other, we let a user to stand at about
45
facing both Kinects and in
a pose with two arms and legs
open (such as the top row
of Fig.2). In such a pose, all joints
S
A
and
S
B
will be reported as
‘tracked’ and will be used to
determine
R
and
t
in a least-square sense by
minimizing the
following energy function
defined on joint positions
where
cp
and
cq
are the average
centers of {pi}
and {qi}
respectively.
Specifically, the 3 3
matrix
R
can be solved
by
Singular Value
Decomposition
of the linear equations of
The solution of SVD need to
be first converted
into a quaternion, and then
be normalized to finalize the rotation
matrix
R.
Details can be found in [28]. The translation
vector
t
is determined by
cp
<‒
Rcq
+
t.
Moreover, the
update of translation vector
t
is also conducted
before the computation in
every frame. Specifically, the centric
positions of joints on the
main body (i.e., excluding the
joints on limbs and at head)
are used to transform the rotated
S
B
to let its center
coincident with the center of
S
A.
In the initialization step,
the lengths of bones are also computed
and stored. The tracked
joints of
S
A
and
S
B
are first
placed to the average
position, i.e.,
Then, lengths of bones on
this averaged skeleton can be computed.
The procedure of bone
length initialization can be
taken for a few seconds,
and the averaged lengths of each
bone during this period
will be preserved in the later ACAP
computation.
|
La función JR en
la ecuación (12) nos dice simplemente que esta cantidad
(dependiente de la matriz de rotación R y del vector
traslación t ) es la suma, para
todas las articulaciones de ambos esqueletos, de la suma de
cuadrados de las distancias en 3D entre los
puntos homólogos (subíndice i), llevados al origen (restando
su referencia a cada uno) y trasladando uno de ellos a donde
está el otro. Es decir llevamos uno al otro mediante
rotación R y traslación t, y luego hallamos la suma de
distancias entre estos dos esqueletos.
La derivada parcial de J
respecto a R significa, claro, hallar sus componentes,
es decir, hallar las componentes de las derivadas parciales
de J respecto a cada valor de R. La expresión vale 0 cuando
los incrementos diferenciales en cada uno de esos valores
implican un aumento de esa suma de cuadrado de distancias,
es decir, se alejan ambos esqueletos.
Curiosamente, para hallar
el vector translación t, se usan solo las articulaciones del
torso (probablemente 0,1,2,4,8 y 12) lo que implica que se
consideran más fiables que el resto)
Se promedian estos dos
esqueletos reunidos durante unos pocos segundos, para
estabilizar las longitudes de los huesos, y se guardan.
Nosotros minimizamos R
aproximando uno esqueleto al otros calculando los
incrementos diferenciales de distancias (raiz de los
cuadrados) medias, lo que las expresa en unidades coherentes
con las usadas en los esqueletos (metros); ello que favorece
el control de resultados parciales por el desarrollador del
sistema. Y resolvemos por cálculo numérico en lugar de
hacerlo por mínimos cuadrados en los sistemas de ecuaciones
20*20 para cada articulación.
|