37 template <
typename NUMTYPE>
39 const CVectorDynamic<NUMTYPE>& x,
const CVectorDynamic<NUMTYPE>& y,
40 const CVectorDynamic<NUMTYPE>& z,
41 std::vector<std::pair<size_t, TPlane>>& out_detected_planes,
42 const double threshold,
const size_t min_inliers_for_valid_plane = 10);
54 template <
typename NUMTYPE>
56 const CVectorDynamic<NUMTYPE>& x,
const CVectorDynamic<NUMTYPE>& y,
57 std::vector<std::pair<size_t, TLine2D>>& out_detected_lines,
58 const double threshold,
const size_t min_inliers_for_valid_line = 5);
63 template <
class POINTSMAP>
65 const POINTSMAP* points_map,
66 std::vector<std::pair<size_t, TPlane>>& out_detected_planes,
67 const double threshold,
const size_t min_inliers_for_valid_plane)
70 points_map->getAllPoints(xs, ys, zs);
72 xs, ys, zs, out_detected_planes, threshold,
73 min_inliers_for_valid_plane);
Template for column vectors of dynamic size, compatible with Eigen.
void ransac_detect_3D_planes(const CVectorDynamic< NUMTYPE > &x, const CVectorDynamic< NUMTYPE > &y, const CVectorDynamic< NUMTYPE > &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...
This base provides a set of functions for maths stuff.
void ransac_detect_2D_lines(const CVectorDynamic< NUMTYPE > &x, const CVectorDynamic< NUMTYPE > &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...