.. index:: pair: namespace; absor .. _doxid-namespaceabsor: namespace absor =============== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace absor { // global functions int :ref:`hornAbsOrientation`(const Eigen::MatrixXd& refPoints, const Eigen::MatrixXd& targetPoints, std::vector& quat, double& rmsd, std::vector& rmsdList, double& scale); Eigen::MatrixXd :ref:`calcMatrixS`(const Eigen::MatrixXd& centeredRefPnts, const Eigen::MatrixXd& centeredTargetPnts, int nop, int dim); Eigen::MatrixXd :ref:`calcMatrixN`(const Eigen::MatrixXd& S); Eigen::MatrixXd :ref:`centerWRTcentroid`(const Eigen::MatrixXd& pointSet); double :ref:`calcScaleFactor`(const Eigen::MatrixXd& rightSys, const Eigen::MatrixXd& leftSys, int n); Eigen::MatrixXd :ref:`quat2RotMatrix`(const Eigen::VectorXd& quat); double :ref:`getRMSD`(const Eigen::MatrixXd& centeredRefPnts, const Eigen::MatrixXd& centeredTargetPnts, const Eigen::VectorXd& quat, std::vector& rmsdList, int nop, double scale); } // namespace absor .. _details-namespaceabsor: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; hornAbsOrientation .. _doxid-namespaceabsor_1a09d62115f686492810352905250fb0ef: .. ref-code-block:: cpp :class: doxyrest-title-code-block int hornAbsOrientation(const Eigen::MatrixXd& refPoints, const Eigen::MatrixXd& targetPoints, std::vector& quat, double& rmsd, std::vector& rmsdList, double& scale) Get the absolute orientation using Horn's algorithm (with quaternions) .. index:: pair: function; calcMatrixS .. _doxid-namespaceabsor_1a16e1d855167323dabd3dbfcd8f1290af: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd calcMatrixS(const Eigen::MatrixXd& centeredRefPnts, const Eigen::MatrixXd& centeredTargetPnts, int nop, int dim) Compute the matrix S, or M, whose elements are the sums of products of coordinates measured in the left and right systems. .. index:: pair: function; calcMatrixN .. _doxid-namespaceabsor_1af2d549df95a889e345c6ce1c86155c12: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd calcMatrixN(const Eigen::MatrixXd& S) Compute the matrix N, a 4x4 symmetric matrix, by combining sums (saved as elements in the matrix S) .. index:: pair: function; centerWRTcentroid .. _doxid-namespaceabsor_1a446b8553f6f2e4c8aeba3b663d257f4c: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd centerWRTcentroid(const Eigen::MatrixXd& pointSet) Center a point set wrt the centroid. .. index:: pair: function; calcScaleFactor .. _doxid-namespaceabsor_1a187318f48da3c9f095806f282a9fd73f: .. ref-code-block:: cpp :class: doxyrest-title-code-block double calcScaleFactor(const Eigen::MatrixXd& rightSys, const Eigen::MatrixXd& leftSys, int n) Calculate the scale factor from the centered left and right point sets. .. index:: pair: function; quat2RotMatrix .. _doxid-namespaceabsor_1af4cf6d8d2d3c0041e995922c3569fc95: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd quat2RotMatrix(const Eigen::VectorXd& quat) Get a rotation matrix from a unit quaternion. .. index:: pair: function; getRMSD .. _doxid-namespaceabsor_1af8dec7e715752a64cc7875a367450176: .. ref-code-block:: cpp :class: doxyrest-title-code-block double getRMSD(const Eigen::MatrixXd& centeredRefPnts, const Eigen::MatrixXd& centeredTargetPnts, const Eigen::VectorXd& quat, std::vector& rmsdList, int nop, double scale) Calculate the RMSD.