TooN Algorithm Library - tag
0.2
|
#include <ransac_estimators.h>
Public Member Functions | |
PlaneFromPoints () | |
template<class It > | |
void | estimate (It begin, It end) |
template<class M > | |
double | score (const M &m) const |
template<class M > | |
bool | isInlier (const M &m, double r) const |
Public Attributes | |
TooN::Vector< 4 > | plane |
the plane equation coefficients as homogeneous vector with unit normal, or (0,0,0,1) More... | |
Static Public Attributes | |
static const int | hypothesis_size = 3 |
minimal number of correspondences More... | |
RANSAC estimator to compute a plane fitting 3 or more points. The points are Vector<3> or similar. The minimal set are three points, in which case a fast method is used to compute the plane. For more correspondences a method using SVD is employed. Pass in iterators where each element is represents a Vector<3>.
The estimated plane will be represented by (n,d), where n is a unit vector representing the plane normal and d the distance to the origin. If n == (0 0 0), then no plane was found.
|
inline |
|
inline |
References plane.
|
inline |
References tag::noise(), and score().
|
inline |
References plane.
Referenced by isInlier().
|
static |
minimal number of correspondences
TooN::Vector<4> tag::PlaneFromPoints::plane |
the plane equation coefficients as homogeneous vector with unit normal, or (0,0,0,1)
Referenced by estimate(), and score().