Hi, I need to find the distance of a vehicle from ego-vehicle using monocular camera. I can accomplish it using Visual Perception Using Monocular Matlab given. But I need to know the math behind it, on of them is the rotation matrix to align camera coordinate with vehicle coordinate in estimaMonoCameraParameter.m, In there I found
% R = [cos(a)*cos(c)-sin(a)*cos(b)*sin(c), -cos(a)*sin(c)-sin(a)*cos(b)*cos(c), sin(a)*sin(b);
% sin(a)*cos(c)+cos(a)*cos(b)*sin(c), -sin(a)*sin(c)+cos(a)*cos(b)*cos(c), -cos(a)*sin(b);
% sin(b)*sin(c), sin(b)*cos(c), cos(b)]
to be the rotation matrix. But I can decompose the rotation matrix to elementary matrix to find the order of rotation. Please help me. Thank you so much.