Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef PCL_POISSON_FUNCTION_DATA_H_
00043 #define PCL_POISSON_FUNCTION_DATA_H_
00044
00045
00046 #include "ppolynomial.h"
00047
00048 namespace pcl
00049 {
00050 namespace poisson
00051 {
00052
00053 template<int Degree,class Real>
00054 class FunctionData
00055 {
00056 int useDotRatios;
00057 int normalize;
00058
00059 public:
00060 const static int DOT_FLAG;
00061 const static int D_DOT_FLAG;
00062 const static int D2_DOT_FLAG;
00063 const static int VALUE_FLAG;
00064 const static int D_VALUE_FLAG;
00065
00066 int depth, res, res2;
00067 Real *dotTable, *dDotTable, *d2DotTable;
00068 Real *valueTables, *dValueTables;
00069 PPolynomial<Degree> baseFunction;
00070 PPolynomial<Degree-1> dBaseFunction;
00071 PPolynomial<Degree+1>* baseFunctions;
00072
00073 FunctionData (void);
00074 ~FunctionData (void);
00075
00076 virtual void setDotTables (const int& flags);
00077 virtual void clearDotTables (const int& flags);
00078
00079 virtual void setValueTables (const int& flags, const double& smooth = 0);
00080 virtual void setValueTables (const int& flags, const double& valueSmooth, const double& normalSmooth);
00081 virtual void clearValueTables (void);
00082
00083 void set (const int& maxDepth, const PPolynomial<Degree>& F, const int& normalize, const int& useDotRatios = 1);
00084
00085 Real dotProduct (const double& center1, const double& width1,
00086 const double& center2, const double& width2) const;
00087 Real dDotProduct (const double& center1, const double& width1,
00088 const double& center2, const double& width2) const;
00089 Real d2DotProduct (const double& center1, const double& width1,
00090 const double& center2, const double& width2) const;
00091
00092 static inline int SymmetricIndex (const int& i1, const int& i2);
00093 static inline int SymmetricIndex (const int& i1, const int& i2, int& index);
00094 };
00095 }
00096 }
00097
00098 #include <pcl/surface/impl/poisson/function_data.hpp>
00099 #endif