STIR  6.2.0
Classes | Typedefs | Enumerations | Functions
stir::BSpline Namespace Reference

Namespace for functions and classes for B-Spline interpolation in the STIR library. More...

Classes

class  BSplines1DRegularGrid
 Temporary class for 1D B-splines. More...
 
class  BSplines_Tests
 A simple class to test the BSplines function. More...
 
class  BSplinesRegularGrid
 A class for n-dimensional BSpline interpolation when the input samples are on a regular grid. More...
 
class  BSplinesRegularGrid1D_Tests
 A simple class to test the BSplinesRegularGrid class for 1D arrays. More...
 
class  BSplinesRegularGrid_Tests
 A simple class to BSplinesRegularGrid for 2D arrays. More...
 

Typedefs

typedef double pos_type
 The type used for relative positions between the grid points.
 

Enumerations

enum  BSplineType {
  near_n, linear, quadratic, cubic,
  quartic, quintic, oMoms
}
 enum providing constants to define the type of B-Spline used for interpolation
 

Functions

template<class RandIterOut , class IterT , class constantsT >
void BSplines_coef (RandIterOut c_begin_iterator, RandIterOut c_end_iterator, IterT input_begin_iterator, IterT input_end_iterator, const constantsT z1, const constantsT z2, const constantsT lambda)
 compute BSpline coefficients that gives the BSpline that interpolates the given data
 
template<typename pos_type >
pos_type BSplines_1st_der_weight (const pos_type relative_position, const BSplineType spline_type)
 return value of the first derivative of the spline
 
template<typename pos_type >
pos_type BSplines_weights (const pos_type relative_position, const BSplineType spline_type)
 return spline value
 
const PieceWiseFunction< pos_type > & bspline_function (BSplineType type)
 
template<typename posT >
posT cubic_BSplines_weight (const posT relative_position)
 
template<typename posT >
posT oMoms_weight (const posT relative_position)
 
template<typename posT >
posT cubic_BSplines_1st_der_weight (const posT relative_position)
 
template<typename posT >
posT BSplines_1st_der_weight (const posT relative_position, const BSplineType spline_type)
 
template<typename posT >
posT BSplines_weights (const posT relative_position, const BSplineType spline_type)
 

Detailed Description

Namespace for functions and classes for B-Spline interpolation in the STIR library.