I have a Source and target in the same coordinate system. There are 'n' points in the source and 'n' points in target(n>=3). Correspondences are also known. I would like to find optimal rigid transformation matrix(6 DOF or less in some cases).
I understand that this is solved by minimizing the squares of distances between source and target points.
I have two following questions.
1) What is the best solver in these cases? 2) In case of Levenberg–Marquardt algorithm with Quaternions representing rotations, what is the best way to calculate Jacobian matrix?