This represents a bivariate polynomial and provides some functionality for it More...
#include <bivariate_polynomial.h>
Public Member Functions | |
| BivariatePolynomialT (const BivariatePolynomialT &other) | |
| BivariatePolynomialT (int new_degree=0) | |
| void | calculateGradient (bool forceRecalc=false) |
| void | findCriticalPoints (std::vector< real > &x_values, std::vector< real > &y_values, std::vector< int > &types) const |
| unsigned int | getNoOfParameters () const |
| real | getValue (real x, real y) const |
| void | getValueOfGradient (real x, real y, real &gradX, real &gradY) |
| BivariatePolynomialT & | operator= (const BivariatePolynomialT &other) |
| void | readBinary (const char *filename) |
| void | readBinary (std::istream &os) |
| void | setDegree (int new_degree) |
| void | writeBinary (const char *filename) const |
| void | writeBinary (std::ostream &os) const |
| ~BivariatePolynomialT () | |
Static Public Member Functions | |
| static unsigned int | getNoOfParametersFromDegree (int n) |
Public Attributes | |
| int | degree |
| BivariatePolynomialT< real > * | gradient_x |
| BivariatePolynomialT< real > * | gradient_y |
| real * | parameters |
Protected Member Functions | |
| void | deepCopy (const BivariatePolynomialT< real > &other) |
| void | memoryCleanUp () |
This represents a bivariate polynomial and provides some functionality for it
Definition at line 12 of file bivariate_polynomial.h.
| pcl::BivariatePolynomialT< real >::BivariatePolynomialT | ( | int | new_degree = 0 |
) | [inline] |
Constructor
Definition at line 2 of file bivariate_polynomial.hpp.
| pcl::BivariatePolynomialT< real >::BivariatePolynomialT | ( | const BivariatePolynomialT< real > & | other | ) | [inline] |
Copy constructor
Definition at line 9 of file bivariate_polynomial.hpp.
| pcl::BivariatePolynomialT< real >::~BivariatePolynomialT | ( | ) | [inline] |
Destructor
Definition at line 16 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::calculateGradient | ( | bool | forceRecalc = false |
) | [inline] |
Calculate the gradient of this polynomial If forceRecalc is false, it will do nothing when the gradient already exists
Definition at line 83 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::deepCopy | ( | const BivariatePolynomialT< real > & | other | ) | [inline, protected] |
Create a deep copy of the given polynomial
Definition at line 53 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::findCriticalPoints | ( | std::vector< real > & | x_values, | |
| std::vector< real > & | y_values, | |||
| std::vector< int > & | types | |||
| ) | const [inline] |
Returns critical points of the polynomial. type can be 0=maximum, 1=minimum, or 2=saddle point !!Currently only implemented for degree 2!!
Definition at line 150 of file bivariate_polynomial.hpp.
| unsigned int pcl::BivariatePolynomialT< real >::getNoOfParameters | ( | ) | const [inline] |
How many parametes has a bivariate polynomial with this degree
Definition at line 34 of file bivariate_polynomial.h.
| static unsigned int pcl::BivariatePolynomialT< real >::getNoOfParametersFromDegree | ( | int | n | ) | [inline, static] |
How many parametes has a bivariate polynomial of the given degree
Definition at line 66 of file bivariate_polynomial.h.
| real pcl::BivariatePolynomialT< real >::getValue | ( | real | x, | |
| real | y | |||
| ) | const [inline] |
Calculate the value of the polynomial at the given point
Definition at line 114 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::getValueOfGradient | ( | real | x, | |
| real | y, | |||
| real & | gradX, | |||
| real & | gradY | |||
| ) | [inline] |
Calculate the value of the gradient at the given point
Definition at line 134 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::memoryCleanUp | ( | ) | [inline, protected] |
Delete all members
Definition at line 44 of file bivariate_polynomial.hpp.
| BivariatePolynomialT& pcl::BivariatePolynomialT< real >::operator= | ( | const BivariatePolynomialT< real > & | other | ) | [inline] |
= operator
Definition at line 26 of file bivariate_polynomial.h.
| void pcl::BivariatePolynomialT< real >::readBinary | ( | const char * | filename | ) | [inline] |
read binary from a file
Definition at line 253 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::readBinary | ( | std::istream & | os | ) | [inline] |
read binary from a stream
Definition at line 242 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::setDegree | ( | int | new_degree | ) | [inline] |
Initialize members to default values
Definition at line 23 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::writeBinary | ( | const char * | filename | ) | const [inline] |
write as binary into a file
Definition at line 234 of file bivariate_polynomial.hpp.
| void pcl::BivariatePolynomialT< real >::writeBinary | ( | std::ostream & | os | ) | const [inline] |
write as binary to a stream
Definition at line 225 of file bivariate_polynomial.hpp.
| int pcl::BivariatePolynomialT< real >::degree |
Definition at line 68 of file bivariate_polynomial.h.
| BivariatePolynomialT<real>* pcl::BivariatePolynomialT< real >::gradient_x |
Definition at line 70 of file bivariate_polynomial.h.
| BivariatePolynomialT<real> * pcl::BivariatePolynomialT< real >::gradient_y |
Definition at line 70 of file bivariate_polynomial.h.
| real* pcl::BivariatePolynomialT< real >::parameters |
Definition at line 69 of file bivariate_polynomial.h.