35 #ifndef AIMS_RESAMPLING_QUARTICRESAMPLER_D_H
36 #define AIMS_RESAMPLING_QUARTICRESAMPLER_D_H
51 this->
_poles.push_back( std::sqrt( 664.0 - std::sqrt( 438976.0 ) ) +
52 std::sqrt( 304.0 ) - 19.0 );
53 this->
_poles.push_back( std::sqrt( 664.0 + std::sqrt( 438976.0 ) ) -
54 std::sqrt( 304.0 ) - 19.0 );
79 x = std::fabs( x - (
double )i );
84 return x * ( x * 0.25 - 0.625 ) + 115.0 / 192.0;
90 return x * ( x * ( x * ( 5.0 / 6.0 - x * ( 1.0 / 6.0 ) ) - 1.25 ) +
91 5.0 / 24.0 ) + 55.0 / 96.0;
99 return x * x * ( 1.0 / 24.0 );
double getBSplineWeight(int i, double x) const CARTO_OVERRIDE
Returns .
int getOrder() const CARTO_OVERRIDE
Spline order (1 to 7)
B-Spline-based resampling.
std::vector< double > _poles