26 #include <Eigen/Eigen>
35 for (
int i = 0; i < matrix.cols(); i++)
37 matrix(rowNr, i) =
value;
43 Eigen::Vector3f sum(0, 0, 0);
45 for (
int i = 0; i < points.cols(); i++)
47 sum += points.block<3, 1>(0, i);
50 return sum / points.cols();
55 Eigen::MatrixXf matrix(3, points.cols());
57 for (
int i = 0; i < points.cols(); i++)
59 matrix.block<3, 1>(0, i) = points.block<3, 1>(0, i) - vec;