I have 2 sets of 3 points: the "origin" and "destiny". Any ideas on how to find the best-fit transformation matrix that will convert the origin's points to destiny using (only) rotation, scaling and translation?
I know a way to solve that, which is creating a function that applies the 3 transformation to the origin points and calculate the distance of them to the destiny points; then I minimize this function. Any easier way?