35 #ifndef AIMS_RESAMPLING_CUBICRESAMPLER_D_H
36 #define AIMS_RESAMPLING_CUBICRESAMPLER_D_H
50 this->
_poles.push_back( std::sqrt( 3.0 ) - 2.0 );
51 this->
_gain = 12.0 - std::sqrt( 108.0 );
75 x = std::fabs( x - (
double )i );
79 return ( x * x * ( x - 2.0 ) * 3.0 + 4.0 ) * ( 1.0 / 6.0 );
86 return x * x * x * ( 1.0 / 6.0 );
int getOrder() const CARTO_OVERRIDE
Spline order (1 to 7)
double getBSplineWeight(int i, double x) const CARTO_OVERRIDE
Returns .
B-Spline-based resampling.
std::vector< double > _poles