Following the example from the bundle adjustment tutorial
http://ceres-solver.org/nnls_tutorial.html#bundle-adjustmentI wanted to input Euler angles that I want to optimize instead of axis-angles. In order to do so I replaced this part of the code :
// camera[0,1,2] are the angle-axis rotation.
T p[3];
ceres::AngleAxisRotatePoint(camera, point, p);
By
T R[9]; //rotation matrix
T camera_axis_angles[3];
ceres::EulerAnglesToRotationMatrix(camera_euler_angles, 3, R);
ceres::RotationMatrixToAngleAxis(R, camera_axis_angles);
ceres::AngleAxisRotatePoint(camera_axis_angles, point, p);
But I am not getting the results I want. Am I doing something wrong here?