35 #ifndef AIMS_RESAMPLING_QUINTICRESAMPLER_D_H
36 #define AIMS_RESAMPLING_QUINTICRESAMPLER_D_H
50 this->
_poles.push_back( 0.5 * ( std::sqrt( 270.0 - std::sqrt( 70980.0 ) ) +
51 std::sqrt( 105.0 ) - 13.0 ) );
52 this->
_poles.push_back( 0.5 * ( std::sqrt( 270.0 + std::sqrt( 70980.0 ) ) -
53 std::sqrt( 105.0 ) - 13.0 ) );
79 x = std::fabs( x - (
double )i );
84 return f * ( f * ( 0.25 - x * ( 1.0 / 12.0 ) ) - 0.5 ) + 0.55;
90 return x * ( x * ( x * ( x * ( x * ( 1.0 / 24.0 ) - 0.375 ) + 1.25 ) -
91 1.75 ) + 0.625 ) + 0.425;
99 return f * x * x * ( 1.0 / 120.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