vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
Public Member Functions | Public Attributes | List of all members
offset_f Struct Reference

invoke with: bls <spline degree> <number of iterations> \ [ <frequency cutoff> ] More...

Inheritance diagram for offset_f:
vspline::unary_functor< double > vspline::unary_functor_tag< vspline::vector_traits< double > ::size >

Public Member Functions

 offset_f (const double &_offset)
 
template<typename IN , typename OUT >
void eval (const IN &in, OUT &out) const
 

Public Attributes

const double offset
 

Additional Inherited Members

- Public Types inherited from vspline::unary_functor< double >
enum  
 
enum  
 
enum  
 
typedef double in_type
 
typedef double out_type
 
typedef vspline::vector_traits< double >::ele_type in_ele_type
 
typedef vspline::vector_traits< double >::ele_type out_ele_type
 
typedef vigra::TinyVector< in_ele_type, dim_inin_nd_ele_type
 
typedef vigra::TinyVector< out_ele_type, dim_outout_nd_ele_type
 
typedef vector_traits< double, vsize >::ele_v in_ele_v
 a simdized type of the elementary type of result_type, which is used for coefficients and results. this is fixed via the traits class vector_traits (in vector.h). Note how we derive this type using vsize from the template argument, not what vspline::vector_traits deems appropriate for ele_type - though both numbers will be the same in most cases. More...
 
typedef vector_traits< double, vsize >::ele_v out_ele_v
 
typedef vector_traits< double, vsize >::nd_ele_v in_nd_ele_v
 
typedef vector_traits< double, vsize >::nd_ele_v out_nd_ele_v
 
typedef vector_traits< double, vsize >::type in_v
 vectorized in_type and out_type. vspline::vector_traits supplies these types so that multidimensional/multichannel data come as vigra::TinyVectors, while 'singular' data won't be made into TinyVectors of one element. More...
 
typedef vector_traits< double, vsize >::type out_v
 
typedef vector_traits< int, vsize >::ele_v ic_v
 vsize wide vector of ints, used for gather/scatter indexes More...
 
- Static Public Attributes inherited from vspline::unary_functor< double >
static const bool has_capped_eval
 

Detailed Description

invoke with: bls <spline degree> <number of iterations> \ [ <frequency cutoff> ]

Try different spline degrees and cutoff frequencies. With cutoff frequencies of 0.5 or less you'll notice that even with relatively low spline degree, the 'immunity' to resampling is quite good: even with thousands of iterations, the original signal can be regained with minimal error. Raising the spline degree, the cutoff frequency can even be raised above 0.5 and the spline remains quite 'immune'.

Definition at line 121 of file bls.cpp.

Constructor & Destructor Documentation

◆ offset_f()

offset_f::offset_f ( const double &  _offset)
inline

Definition at line 125 of file bls.cpp.

Member Function Documentation

◆ eval()

template<typename IN , typename OUT >
void offset_f::eval ( const IN &  in,
OUT &  out 
) const
inline

Definition at line 130 of file bls.cpp.

Member Data Documentation

◆ offset

const double offset_f::offset

Definition at line 123 of file bls.cpp.


The documentation for this struct was generated from the following file: