iterative closest points
CEV ICP algorithm library
Loading...
Searching...
No Matches
geo.cpp
Go to the documentation of this file.
1
7#include <numeric>
8#include "icp/geo.h"
9
10namespace icp {
11 Vector get_centroid(const std::vector<Vector>& points) {
12 Vector sum = Vector::Zero();
13 for (const Vector& point: points) {
14 sum += point;
15 }
16 return sum / points.size();
17 }
18}
Definition driver.h:12
Eigen::Vector2d Vector
Definition geo.h:15
Vector get_centroid(const std::vector< Vector > &points)
Definition geo.cpp:11