36 #ifndef PCL_POLYNOMIAL_CALCULATIONS_H_ 37 #define PCL_POLYNOMIAL_CALCULATIONS_H_ 39 #include <pcl/common/eigen.h> 40 #include <pcl/common/bivariate_polynomial.h> 49 template <
typename real>
97 unsigned int polynomial_degree,
bool& error)
const;
133 #include <pcl/common/impl/polynomial_calculations.hpp> This represents a bivariate polynomial and provides some functionality for it.
bool sqrtIsNearlyZero(real d) const
check if sqrt(fabs(d))<zeroValue
~PolynomialCalculationsT()
PolynomialCalculationsT< double > PolynomialCalculationsd
PolynomialCalculationsT()
void solveQuarticEquation(real a, real b, real c, real d, real e, std::vector< real > &roots) const
Solves an equation of the form ax^4 + bx^3 + cx^2 +dx + e = 0 See http://en.wikipedia.org/wiki/Quartic_equation#Summary_of_Ferrari.27s_method.
real sqr_zero_value
sqr of the above
Parameters used in this class.
void setZeroValue(real new_zero_value)
Set zero_value.
real zero_value
Every value below this is considered to be zero.
bool isNearlyZero(real d) const
check if fabs(d)<zeroValue
PolynomialCalculationsT< float > PolynomialCalculations
void setZeroValue(real new_zero_value)
Set the minimum value under which values are considered zero.
void solveQuadraticEquation(real a, real b, real c, std::vector< real > &roots) const
Solves an equation of the form ax^2 + bx + c = 0 See http://en.wikipedia.org/wiki/Quadratic_equation...
void solveCubicEquation(real a, real b, real c, real d, std::vector< real > &roots) const
Solves an equation of the form ax^3 + bx^2 + cx + d = 0 See http://en.wikipedia.org/wiki/Cubic_equati...
BivariatePolynomialT< real > bivariatePolynomialApproximation(std::vector< Eigen::Matrix< real, 3, 1 >, Eigen::aligned_allocator< Eigen::Matrix< real, 3, 1 > > > &samplePoints, unsigned int polynomial_degree, bool &error) const
Get the bivariate polynomial approximation for Z(X,Y) from the given sample points.
This provides some functionality for polynomials, like finding roots or approximating bivariate polyn...
void solveLinearEquation(real a, real b, std::vector< real > &roots) const
Solves an equation of the form ax + b = 0.