aimsalgo  5.0.5
Neuroimaging image processing
aims::DiscreteBSpline Class Reference

Discrete B-Splines B-Spline pre sampled only on integral values. More...

#include <aims/math/bspline.h>

Inheritance diagram for aims::DiscreteBSpline:
Collaboration diagram for aims::DiscreteBSpline:

Public Member Functions

 DiscreteBSpline (unsigned order=3, float scale=1., bool shifted=false)
 Constructor/Destructor/Copy. More...
 
 DiscreteBSpline (const DiscreteBSpline &other)
 
virtual ~DiscreteBSpline ()
 
DiscreteBSplineoperator= (const DiscreteBSpline &other)
 
virtual double operator() (int x) const
 Get value. More...
 
virtual double at (int x) const
 
virtual void reset (unsigned order=3, float scale=1., bool shifted=false)
 Set parameters Be aware that a call to reset, setOrder, setNbDer and setLength will trigger a reallocation of the array and a recomputing of the values. More...
 
virtual void setOrder (unsigned order)
 order More...
 
virtual void setScale (float scale)
 scale More...
 
virtual void setShifted (bool shifted=true)
 shifted More...
 
virtual void setCentered (bool centered=true)
 centered 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)
 
unsigned order () const
 Get parameters @ { 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 double at (double x) const
 spline value at point x More...
 
virtual double derivative (double x, unsigned n=1) const
 n-th derivative of the spline at point x More...
 
virtual const Point2ddsupport () const
 Get the inferior and superior boundaries of the function support (i.e. More...
 

Protected Member Functions

void setArray ()
 
void setSupport ()
 
- Protected Member Functions inherited from aims::BSpline
double dO () const
 

Protected Attributes

std::vector< double > _values
 
- Protected Attributes inherited from aims::BSpline
unsigned _order
 
float _scale
 
bool _shift
 
Point2dd _support
 

Detailed Description

Discrete B-Splines B-Spline pre sampled only on integral values.

Definition at line 325 of file bspline.h.

Constructor & Destructor Documentation

◆ DiscreteBSpline() [1/2]

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

Constructor/Destructor/Copy.

◆ DiscreteBSpline() [2/2]

aims::DiscreteBSpline::DiscreteBSpline ( const DiscreteBSpline other)

◆ ~DiscreteBSpline()

virtual aims::DiscreteBSpline::~DiscreteBSpline ( )
virtual

Member Function Documentation

◆ at()

virtual double aims::DiscreteBSpline::at ( int  x) const
virtual

◆ operator()()

virtual double aims::DiscreteBSpline::operator() ( int  x) const
virtual

Get value.

◆ operator=()

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

◆ reset()

virtual void aims::DiscreteBSpline::reset ( unsigned  order = 3,
float  scale = 1.,
bool  shifted = false 
)
virtual

Set parameters Be aware that a call to reset, setOrder, setNbDer and setLength will trigger a reallocation of the array and a recomputing of the values.

If several of these values need changing, it is thus avdised to use the reset() method.

(Re)set all parameters

Reimplemented from aims::BSpline.

◆ setArray()

void aims::DiscreteBSpline::setArray ( )
protected

◆ setCentered()

virtual void aims::DiscreteBSpline::setCentered ( bool  centered = true)
virtual

centered

Reimplemented from aims::BSpline.

◆ setOrder()

virtual void aims::DiscreteBSpline::setOrder ( unsigned  order)
virtual

order

Reimplemented from aims::BSpline.

◆ setScale()

virtual void aims::DiscreteBSpline::setScale ( float  scale)
virtual

scale

Reimplemented from aims::BSpline.

◆ setShifted()

virtual void aims::DiscreteBSpline::setShifted ( bool  shifted = true)
virtual

shifted

Reimplemented from aims::BSpline.

◆ setSupport()

void aims::DiscreteBSpline::setSupport ( )
protectedvirtual

Reimplemented from aims::BSpline.

Member Data Documentation

◆ _values

std::vector<double> aims::DiscreteBSpline::_values
protected

Definition at line 371 of file bspline.h.


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