74template <
typename cf_type >
76 const int & spline_degree )
81 sample.core[0] = min ;
82 sample.core[1] = max ;
86 xlf_type d = std::max ( std::abs ( sample.core[0] ) ,
87 std::abs ( sample.core[1] ) ) ;
90 return std::numeric_limits<cf_type>::max() / d ;
95int main (
int argc ,
char * argv[] )
102 double boost = max_boost<int> ( min_x , max_x , 3 ) ;
107 boost = std::atof ( argv[1] ) ;
109 assert ( boost != 0.0 ) ;
113 vigra::MultiArray < 1 , double > original ( 2 ) ;
143 < float , double , 8 , -1 , double ,
int > iev_t ;
148 iev_t _iev ( ibspl ) ;
154 < double , double , double , 8 > ( 1.0 / boost ) ;
159 auto iev = _iev + attenuate ;
173 std::cout <<
"iev ( 0 ) = " << iev ( 0.0f ) << std::endl ;
174 std::cout <<
" ev ( 0 ) = " << ev ( 0.0f ) << std::endl ;
175 std::cout <<
"iev ( 1 ) = " << iev ( 1.0f ) << std::endl ;
176 std::cout <<
" ev ( 1 ) = " << ev ( 1.0f ) << std::endl ;
181 std::cout << iv <<
" -> " << iev ( iv ) << std::endl ;
183 std::cout << iv <<
" -> " << iev ( iv ) << std::endl ;
185 std::cout <<
"used boost = " << boost << std::endl ;
class evaluator encodes evaluation of a spline-like object. This is a generalization of b-spline eval...
int main(int argc, char *argv[])
typename vector_traits< T, N > ::type simdized_type
this alias is used as a shorthand to pick the vectorized type for a given type T and a size N from 'v...
amplify_type amplifies it's input with a factor. If the data are multi-channel, the factor is multi-c...
class bspline now builds on class bspline_base, adding coefficient storage, while bspline_base provid...
void prefilter(vspline::xlf_type boost=vspline::xlf_type(1), int njobs=vspline::default_njobs)
prefilter converts the knot point data in the 'core' area into b-spline coefficients....
includes all headers from vspline (most of them indirectly)