35 #ifndef ransac_optimizers_H 36 #define ransac_optimizers_H 59 template <
typename NUMTYPE>
61 const Eigen::Matrix<NUMTYPE,Eigen::Dynamic,1> &x,
62 const Eigen::Matrix<NUMTYPE,Eigen::Dynamic,1> &y,
63 const Eigen::Matrix<NUMTYPE,Eigen::Dynamic,1> &z,
64 std::vector<std::pair<size_t,TPlane> > &out_detected_planes,
65 const double threshold,
66 const size_t min_inliers_for_valid_plane = 10
74 template <
typename NUMTYPE>
76 const Eigen::Matrix<NUMTYPE,Eigen::Dynamic,1> &x,
77 const Eigen::Matrix<NUMTYPE,Eigen::Dynamic,1> &y,
78 std::vector<std::pair<size_t,TLine2D> > &out_detected_lines,
79 const double threshold,
80 const size_t min_inliers_for_valid_line = 5
86 template <
class POINTSMAP>
88 const POINTSMAP * points_map,
89 std::vector<std::pair<size_t,TPlane> > &out_detected_planes,
90 const double threshold,
91 const size_t min_inliers_for_valid_plane
95 points_map->getAllPoints(xs,ys,zs);
void BASE_IMPEXP ransac_detect_3D_planes(const Eigen::Matrix< NUMTYPE, Eigen::Dynamic, 1 > &x, const Eigen::Matrix< NUMTYPE, Eigen::Dynamic, 1 > &y, const Eigen::Matrix< NUMTYPE, Eigen::Dynamic, 1 > &z, std::vector< std::pair< size_t, TPlane > > &out_detected_planes, const double threshold, const size_t min_inliers_for_valid_plane=10)
Fit a number of 3-D planes to a given point cloud, automatically determining the number of existing p...
The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void BASE_IMPEXP ransac_detect_2D_lines(const Eigen::Matrix< NUMTYPE, Eigen::Dynamic, 1 > &x, const Eigen::Matrix< NUMTYPE, Eigen::Dynamic, 1 > &y, std::vector< std::pair< size_t, TLine2D > > &out_detected_lines, const double threshold, const size_t min_inliers_for_valid_line=5)
Fit a number of 2-D lines to a given point cloud, automatically determining the number of existing li...