aimsalgo  5.1.2
Neuroimaging image processing
aims::FastBSpline Class Reference

*Centered and *scaled B-Spline function, evaluated at run time. More...

#include <aims/math/bspline.h>

Inheritance diagram for aims::FastBSpline:
Collaboration diagram for aims::FastBSpline:

Public Member Functions

 FastBSpline (unsigned order=3, float scale=1., bool shifted=false)
 
 FastBSpline (const FastBSpline &other)
 
virtual ~FastBSpline ()
 
FastBSplineoperator= (const FastBSpline &other)
 
virtual double at (double x) const
 Compute valuespline value at point x. More...
 
virtual double derivative (double x, unsigned n=1) const
 n-th derivative of the spline at point x More...
 
- Public Member Functions inherited from aims::BSpline
 BSpline (unsigned order=3, float scale=1., bool shifted=false)
 
 BSpline (const BSpline &other)
 
virtual ~BSpline ()
 
BSplineoperator= (const BSpline &other)
 
virtual void reset (unsigned order=3, float scale=1., bool shifted=false)
 Set parameters &nbsp;{ (Re)set all parameters. More...
 
virtual void setOrder (unsigned order)
 order More...
 
virtual void setScale (float scale)
 scale More...
 
virtual void setShifted (bool shifted)
 shifted More...
 
virtual void setCentered (bool centered)
 centered More...
 
unsigned order () const
 Get parameters &nbsp;{ spline order. More...
 
float scale () const
 spline scale More...
 
bool shifted () const
 is shifted ? More...
 
bool centered () const
 is centered ? More...
 
virtual double operator() (double x) const
 Compute value. More...
 
virtual const Point2ddsupport () const
 Get the inferior and superior boundaries of the function support (i.e. More...
 

Additional Inherited Members

- Protected Member Functions inherited from aims::BSpline
double dO () const
 
virtual void setSupport ()
 
- Protected Attributes inherited from aims::BSpline
unsigned _order
 
float _scale
 
bool _shift
 
Point2dd _support
 

Detailed Description

*Centered and *scaled B-Spline function, evaluated at run time.

Here, analytical expression are hard coded for orders 0 to 7.

In this implementation, unshifted centered B-Spline are evaluated at value x/m (+ .5).

Definition at line 216 of file bspline.h.

Constructor & Destructor Documentation

◆ FastBSpline() [1/2]

aims::FastBSpline::FastBSpline ( unsigned  order = 3,
float  scale = 1.,
bool  shifted = false 
)

◆ FastBSpline() [2/2]

aims::FastBSpline::FastBSpline ( const FastBSpline other)

◆ ~FastBSpline()

virtual aims::FastBSpline::~FastBSpline ( )
virtual

Member Function Documentation

◆ at()

virtual double aims::FastBSpline::at ( double  x) const
virtual

Compute valuespline value at point x.

Implemented for orders 0 to 7

Reimplemented from aims::BSpline.

◆ derivative()

virtual double aims::FastBSpline::derivative ( double  x,
unsigned  n = 1 
) const
virtual

n-th derivative of the spline at point x

Implemented for orders 0 to 3

Reimplemented from aims::BSpline.

◆ operator=()

FastBSpline& aims::FastBSpline::operator= ( const FastBSpline other)

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