Skip to content

Instantly share code, notes, and snippets.

@ialhashim
Created February 17, 2014 18:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ialhashim/9056472 to your computer and use it in GitHub Desktop.
Save ialhashim/9056472 to your computer and use it in GitHub Desktop.
//Eigen::MatrixXd src = pointsToMatrix(pointsA[i]);
//Eigen::MatrixXd dst = pointsToMatrix(pointsB[j]);
//Eigen::Matrix4d cR_t = Eigen::umeyama(src, dst, true);
//Eigen::Matrix4d R_t = Eigen::umeyama(src, dst, false);
//Eigen::Matrix3d R = R_t.block(0,0,3,3);
//Eigen::Vector3d t = R_t.block(0,3,3,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment