Exemple #1
0
        private void SVD_OfPointCloud(PointCloudVertices pointsSource, bool normalsCovariance)
        {
            //calculate correlation matrix

            Matrix3d C = PointCloudVertices.CovarianceMatrix(pointsSource, normalsCovariance);

            SVD.Eigenvalues_Helper(C);

            EV = SVD.EV;
            VT = SVD.VT;
            U  = SVD.U;
        }
Exemple #2
0
        private void SVD_ForListVectorsMassCentered(List <Vector3d> pointsSource, bool normalsCovariance)
        {
            //calculate correlation matrix
            Matrix3d C = PointCloudVertices.CovarianceMatrix(pointsSource, normalsCovariance);

            SVD.Eigenvalues_Helper(C);
            EV = SVD.EV;
            VT = SVD.VT;
            U  = SVD.U;

            V = Matrix3d.Transpose(VT);
        }