Point Cloud Library (PCL)  1.3.1
Public Member Functions | Static Public Member Functions | Public Attributes
pcl::BivariatePolynomialT Class Reference

This represents a bivariate polynomial and provides some functionality for it. More...

#include <pcl/common/bivariate_polynomial.h>

List of all members.

Public Member Functions

 BivariatePolynomialT (int new_degree=0)
 Constructor.
 BivariatePolynomialT (const BivariatePolynomialT &other)
 Copy constructor.
 ~BivariatePolynomialT ()
 Destructor.
BivariatePolynomialToperator= (const BivariatePolynomialT &other)
 = operator
void setDegree (int new_degree)
 Initialize members to default values.
unsigned int getNoOfParameters () const
 How many parametes has a bivariate polynomial with this degree.
real getValue (real x, real y) const
 Calculate the value of the polynomial at the given point.
void calculateGradient (bool forceRecalc=false)
 Calculate the gradient of this polynomial If forceRecalc is false, it will do nothing when the gradient already exists.
void getValueOfGradient (real x, real y, real &gradX, real &gradY)
 Calculate the value of the gradient at the given point.
void findCriticalPoints (std::vector< real > &x_values, std::vector< real > &y_values, std::vector< int > &types) const
 Returns critical points of the polynomial.
void writeBinary (std::ostream &os) const
 write as binary to a stream
void writeBinary (const char *filename) const
 write as binary into a file
void readBinary (std::istream &os)
 read binary from a stream
void readBinary (const char *filename)
 read binary from a file

Static Public Member Functions

static unsigned int getNoOfParametersFromDegree (int n)
 How many parametes has a bivariate polynomial of the given degree.

Public Attributes

int degree
real * parameters
BivariatePolynomialT< real > * gradient_x
BivariatePolynomialT< real > * gradient_y

Detailed Description

This represents a bivariate polynomial and provides some functionality for it.

Author:
Bastian Steder

Constructor & Destructor Documentation

pcl::BivariatePolynomialT::BivariatePolynomialT ( int  new_degree = 0)

Constructor.

Definition at line 2 of file bivariate_polynomial.hpp.

pcl::BivariatePolynomialT::BivariatePolynomialT ( const BivariatePolynomialT other)

Copy constructor.

Definition at line 9 of file bivariate_polynomial.hpp.

pcl::BivariatePolynomialT::~BivariatePolynomialT ( )

Destructor.

Definition at line 16 of file bivariate_polynomial.hpp.


Member Function Documentation

void pcl::BivariatePolynomialT::calculateGradient ( bool  forceRecalc = false)

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::findCriticalPoints ( std::vector< real > &  x_values,
std::vector< real > &  y_values,
std::vector< int > &  types 
) const

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::getNoOfParameters ( ) const [inline]

How many parametes has a bivariate polynomial with this degree.

Definition at line 37 of file bivariate_polynomial.h.

static unsigned int pcl::BivariatePolynomialT::getNoOfParametersFromDegree ( int  n) [inline, static]

How many parametes has a bivariate polynomial of the given degree.

Definition at line 75 of file bivariate_polynomial.h.

real pcl::BivariatePolynomialT::getValue ( real  x,
real  y 
) const

Calculate the value of the polynomial at the given point.

Definition at line 114 of file bivariate_polynomial.hpp.

void pcl::BivariatePolynomialT::getValueOfGradient ( real  x,
real  y,
real &  gradX,
real &  gradY 
)

Calculate the value of the gradient at the given point.

Definition at line 134 of file bivariate_polynomial.hpp.

BivariatePolynomialT& pcl::BivariatePolynomialT::operator= ( const BivariatePolynomialT other) [inline]

= operator

Definition at line 28 of file bivariate_polynomial.h.

void pcl::BivariatePolynomialT::readBinary ( std::istream &  os)

read binary from a stream

Definition at line 242 of file bivariate_polynomial.hpp.

void pcl::BivariatePolynomialT::readBinary ( const char *  filename)

read binary from a file

Definition at line 253 of file bivariate_polynomial.hpp.

void pcl::BivariatePolynomialT::setDegree ( int  new_degree)

Initialize members to default values.

Definition at line 23 of file bivariate_polynomial.hpp.

void pcl::BivariatePolynomialT::writeBinary ( std::ostream &  os) const

write as binary to a stream

Definition at line 225 of file bivariate_polynomial.hpp.

void pcl::BivariatePolynomialT::writeBinary ( const char *  filename) const

write as binary into a file

Definition at line 234 of file bivariate_polynomial.hpp.


Member Data Documentation

Definition at line 78 of file bivariate_polynomial.h.

Definition at line 80 of file bivariate_polynomial.h.

Definition at line 80 of file bivariate_polynomial.h.

Definition at line 79 of file bivariate_polynomial.h.


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