iterative closest points
CEV ICP algorithm library
Loading...
Searching...
No Matches
lib
icp
geo.cpp
Go to the documentation of this file.
1
7
#include <numeric>
8
#include "
icp/geo.h
"
9
10
namespace
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
}
geo.h
icp
Definition
driver.h:12
icp::Vector
Eigen::Vector2d Vector
Definition
geo.h:15
icp::get_centroid
Vector get_centroid(const std::vector< Vector > &points)
Definition
geo.cpp:11
Generated by
1.9.8