estimate_points_eigen.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * A repertory of multi primitive-to-primitive (MP2P) ICP algorithms in C++
3  * Copyright (C) 2018-2024 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
12 #pragma once
13 
14 #include <mrpt/core/optional_ref.h>
15 #include <mrpt/math/TPoint3D.h> // TVector3D
16 #include <mrpt/poses/CPointPDFGaussian.h>
17 
18 #include <cstdint>
19 #include <optional>
20 #include <vector>
21 
22 namespace mp2p_icp
23 {
33 {
34  mrpt::poses::CPointPDFGaussian meanCov;
35  std::array<mrpt::math::TVector3D, 3> eigVectors = {
36  {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}};
37  std::array<double, 3> eigVals = {0, 0, 0};
38 };
39 
58 PointCloudEigen estimate_points_eigen(
59  const float* xs, const float* ys, const float* zs,
60  mrpt::optional_ref<const std::vector<size_t>> indices,
61  std::optional<size_t> totalCount = std::nullopt);
62 
66  const std::vector<mrpt::math::TPoint3Df>& pts, std::vector<float>& xs,
67  std::vector<float>& ys, std::vector<float>& zs);
68 
69 } // namespace mp2p_icp
mp2p_icp
Definition: covariance.h:17
mp2p_icp::estimate_points_eigen
PointCloudEigen estimate_points_eigen(const float *xs, const float *ys, const float *zs, mrpt::optional_ref< const std::vector< size_t >> indices, std::optional< size_t > totalCount=std::nullopt)
Definition: estimate_points_eigen.cpp:19
mp2p_icp::PointCloudEigen::eigVectors
std::array< mrpt::math::TVector3D, 3 > eigVectors
Definition: estimate_points_eigen.h:35
mp2p_icp::vector_of_points_to_xyz
void vector_of_points_to_xyz(const std::vector< mrpt::math::TPoint3Df > &pts, std::vector< float > &xs, std::vector< float > &ys, std::vector< float > &zs)
Definition: estimate_points_eigen.cpp:116
mp2p_icp::PointCloudEigen
Output of estimate_points_eigen()
Definition: estimate_points_eigen.h:32
mp2p_icp::PointCloudEigen::meanCov
mrpt::poses::CPointPDFGaussian meanCov
Definition: estimate_points_eigen.h:34
mp2p_icp::PointCloudEigen::eigVals
std::array< double, 3 > eigVals
sorted in ascending order
Definition: estimate_points_eigen.h:37


mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:10