Point Cloud Library (PCL)  1.3.1
Classes | Public Member Functions
pcl::PolynomialCalculationsT Class Reference

This provides some functionality for polynomials, like finding roots or approximating bivariate polynomials. More...

#include <pcl/common/polynomial_calculations.h>

List of all members.

Classes

struct  Parameters
 Parameters used in this class. More...

Public Member Functions

 PolynomialCalculationsT ()
 ~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.
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_equation.
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 solveLinearEquation (real a, real b, std::vector< real > &roots) const
 Solves an equation of the form ax + b = 0.
BivariatePolynomialT< real > bivariatePolynomialApproximation (std::vector< 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.
bool bivariatePolynomialApproximation (std::vector< Eigen::Matrix< real, 3, 1 > > &samplePoints, unsigned int polynomial_degree, BivariatePolynomialT< real > &ret) const
 Same as above, using a reference for the return value.
void setZeroValue (real new_zero_value)
 Set the minimum value under which values are considered zero.

Detailed Description

This provides some functionality for polynomials, like finding roots or approximating bivariate polynomials.

Author:
Bastian Steder

Constructor & Destructor Documentation

pcl::PolynomialCalculationsT::PolynomialCalculationsT ( )

Definition at line 4 of file polynomial_calculations.hpp.

pcl::PolynomialCalculationsT::~PolynomialCalculationsT ( )

Definition at line 11 of file polynomial_calculations.hpp.


Member Function Documentation

pcl::BivariatePolynomialT< real > pcl::PolynomialCalculationsT::bivariatePolynomialApproximation ( std::vector< Eigen::Matrix< real, 3, 1 > > &  samplePoints,
unsigned int  polynomial_degree,
bool &  error 
) const [inline]

Get the bivariate polynomial approximation for Z(X,Y) from the given sample points.

The parameters a,b,c,... for the polynom are returned. The order is, e.g., for degree 1: ax+by+c and for degree 2: ax²+bxy+cx+dy²+ey+f. error is set to true if the approximation did not work for any reason (not enough points, matrix not invertible, etc.)

Definition at line 374 of file polynomial_calculations.hpp.

bool pcl::PolynomialCalculationsT::bivariatePolynomialApproximation ( std::vector< Eigen::Matrix< real, 3, 1 > > &  samplePoints,
unsigned int  polynomial_degree,
pcl::BivariatePolynomialT< real > &  ret 
) const [inline]

Same as above, using a reference for the return value.

Definition at line 386 of file polynomial_calculations.hpp.

void pcl::PolynomialCalculationsT::setZeroValue ( real  new_zero_value) [inline]

Set the minimum value under which values are considered zero.

Definition at line 106 of file polynomial_calculations.h.

void pcl::PolynomialCalculationsT::solveCubicEquation ( real  a,
real  b,
real  c,
real  d,
std::vector< real > &  roots 
) const [inline]

Solves an equation of the form ax^3 + bx^2 + cx + d = 0 See http://en.wikipedia.org/wiki/Cubic_equation.

Definition at line 118 of file polynomial_calculations.hpp.

void pcl::PolynomialCalculationsT::solveLinearEquation ( real  a,
real  b,
std::vector< real > &  roots 
) const [inline]

Solves an equation of the form ax + b = 0.

Definition at line 29 of file polynomial_calculations.hpp.

void pcl::PolynomialCalculationsT::solveQuadraticEquation ( real  a,
real  b,
real  c,
std::vector< real > &  roots 
) const [inline]

Solves an equation of the form ax^2 + bx + c = 0 See http://en.wikipedia.org/wiki/Quadratic_equation.

Definition at line 62 of file polynomial_calculations.hpp.

void pcl::PolynomialCalculationsT::solveQuarticEquation ( real  a,
real  b,
real  c,
real  d,
real  e,
std::vector< real > &  roots 
) const [inline]

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.

Definition at line 220 of file polynomial_calculations.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines