52 #ifndef __PCL_BidimensionalInterpolation_h
53 #define __PCL_BidimensionalInterpolation_h
58 #include <pcl/Diagnostics.h>
110 virtual void Initialize(
const T* data,
int width,
int height )
112 if ( data ==
nullptr )
113 throw Error(
"Null data pointer in BidimensionalInterpolation::Initialize()" );
114 if ( width <= 0 || height <= 0 )
115 throw Error(
"Invalid dimensions in BidimensionalInterpolation::Initialize()" );
134 m_width = m_height = 0;
140 const T* BeingInterpolated()
const
172 m_fillBorder = enable;
184 m_fillBorder = !disable;
222 const T* m_data =
nullptr;
225 double m_fillValue = 0;
226 bool m_fillBorder =
false;
A generic interface to two-dimensional interpolation algorithms.
virtual void Initialize(const T *data, int width, int height)
virtual ~BidimensionalInterpolation()
bool IsBorderFillingEnabled() const
virtual double operator()(double x, double y) const =0
void DisableBorderFilling(bool disable=true)
BidimensionalInterpolation(const BidimensionalInterpolation &)=default
BidimensionalInterpolation()=default
void EnableBorderFilling(bool enable=true)
double BorderFillValue() const
void SetBorderFillValue(double v)
A simple exception with an associated error message.