1 #ifndef _SURFACEINSPECTOR_MATHS_PLANEFITTER_HPP_
2 #define _SURFACEINSPECTOR_MATHS_PLANEFITTER_HPP_
8 #include <surfaceinspector/util/Object.hpp>
9 #include <surfaceinspector/maths/Plane.hpp>
10 #include <surfaceinspector/maths/DetailedPlane.hpp>
20 namespace SurfaceInspector {
namespace maths{
106 template <
typename T>
116 template <
typename T>
129 template <
typename T>
144 template <
typename T>
161 template <
typename T>
180 template <
typename T>
193 #include <surfaceinspector/maths/PlaneFitter.tpp>
Definition: DetailedPlane.hpp:8
Handle plane fitting operations.
Definition: PlaneFitter.hpp:28
static DetailedPlane< T > bestFittingDetailedPlanePCA(Mat< T > &M, vector< T > center)
Like bestFittingPlanePCA but returning a DetailedPlane which provides more information than a simple ...
static vector< T > translateToOrigin(Mat< T > &M, vector< T > center)
Translate M to origin transposing by center point.
static void extractDetailedPlaneComponents(Mat< T > const &M, arma::mat const &A, arma::vec const &v, T const &sum, DetailedPlane< T > &p)
Extract detailed plane components. It must be invoked after common plane components are extracted int...
static DetailedPlane< T > bestFittingDetailedPlaneSVD(Mat< T > &M, vector< T > center)
Like bestFittingPlaneSVD but returning a DetailedPlane which provides more information than a simple ...
static vector< T > centerCoordinatesMatrix(Mat< T > &M)
Modify coordinates at M so they are centered at origin.
static Plane< T > bestFittingPlaneSVD(Mat< T > &M)
Compute the best fitting plane for given Matrix of coordinates through singular value decomposition.
static Plane< T > bestFittingPlaneFromCovariances(Mat< T > &M)
Compute the best fitting plane for given Matrix of covariances through eigen value decomposition.
static Plane< T > bestFittingPlanePCA(Mat< T > &M)
Compute the best fitting plane for given Matrix of coordinates through principal component analysis.
static void extractCommonPlaneComponents(arma::mat const &A, arma::vec const &v, T &sum, Plane< T > &p)
Extract common plane components.
Class representing a plane.
Definition: Plane.hpp:22
Class representing an object. All surface inspector classes must extend Object.
Definition: Object.hpp:12