Open zhao181 opened 6 years ago
Not exactly, it is the Jacobian of landmark locations w.r.t to rotation that is parametrized by axis angles.
It is easier to parametrize the affect of rotation in terms of axis angles than in terms of Euler angles. You can find more details of this parametrization here - https://www.cl.cam.ac.uk/~tb346/pub/thesis/phd_thesis.pdf specifically chapter 4.24
However, after the parameter update the axis angles are converted to Euler angles (although this is not strictly necessary)
Dear Author, I am recently reading the code about openface, Would you please tell me where the dxdR in the function CalcRigidJacobian come from? dxdR = [ 0, R(1,3), -R(1,2); -R(1,3), 0, R(1,1); R(1,2), -R(1,1), 0];
Is dxdR the jacobi matrix R(1,:) with respect to theta{x},theta{y} and $\theta$_{z}? If so, I am really puzzled about this result.
Looking forward to your reply. Thanks very much.
###########################################33 function J = CalcRigidJacobian(M, V, p, p_global)
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Rot] = Euler2Rot(euler) rx = euler(1); ry = euler(2); rz = euler(3); Rx = [1 0 0; ... 0 cos(rx) -sin(rx); 0 sin(rx) cos(rx)]; Ry = [cos(ry) 0 sin(ry); 0 1 0; -sin(ry) 0 cos(ry)]; Rz = [cos(rz) -sin(rz) 0; sin(rz) cos(rz) 0; 0 0 1];