![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
Discrete B-Splines B-Spline pre sampled only on integral values. More...
#include <aims/math/bspline.h>


Public Member Functions | |
| DiscreteBSpline (unsigned order=3, float scale=1., bool shifted=false) | |
| Constructor/Destructor/Copy. | |
| DiscreteBSpline (const DiscreteBSpline &other) | |
| virtual | ~DiscreteBSpline () |
| DiscreteBSpline & | operator= (const DiscreteBSpline &other) |
| virtual double | operator() (int x) const |
| Get value. | |
| 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. | |
| virtual void | setOrder (unsigned order) |
| order | |
| virtual void | setScale (float scale) |
| scale | |
| virtual void | setShifted (bool shifted=true) |
| shifted | |
| virtual void | setCentered (bool centered=true) |
| centered | |
Public Member Functions inherited from aims::BSpline | |
| BSpline (unsigned order=3, float scale=1., bool shifted=false) | |
| BSpline (const BSpline &other) | |
| virtual | ~BSpline () |
| BSpline & | operator= (const BSpline &other) |
| unsigned | order () const |
| Get parameters @ { spline order. | |
| float | scale () const |
| spline scale | |
| bool | shifted () const |
| is shifted ? | |
| bool | centered () const |
| is centered ? | |
| virtual double | operator() (double x) const |
| Compute value. | |
| virtual double | at (double x) const |
| spline value at point x | |
| virtual double | derivative (double x, unsigned n=1) const |
| n-th derivative of the spline at point x | |
| virtual const Point2dd & | support () const |
| Get the inferior and superior boundaries of the function support (i.e. | |
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 |
Discrete B-Splines B-Spline pre sampled only on integral values.
| aims::DiscreteBSpline::DiscreteBSpline | ( | unsigned | order = 3, |
| float | scale = 1., | ||
| bool | shifted = false ) |
Constructor/Destructor/Copy.
References aims::BSpline::order(), aims::BSpline::scale(), and aims::BSpline::shifted().
Referenced by DiscreteBSpline(), and operator=().
| aims::DiscreteBSpline::DiscreteBSpline | ( | const DiscreteBSpline & | other | ) |
References DiscreteBSpline().
|
virtual |
|
virtual |
|
virtual |
Get value.
| DiscreteBSpline & aims::DiscreteBSpline::operator= | ( | const DiscreteBSpline & | other | ) |
References DiscreteBSpline().
|
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.
References aims::BSpline::order(), aims::BSpline::scale(), and aims::BSpline::shifted().
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Reimplemented from aims::BSpline.
|
protected |