![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
This filter uses a convolution with Spline basis functions. More...
#include <aims/signalfilter/splinefilter.h>


Public Member Functions | |
| DirectBSplineFilter (float scale=1., bool normalize=false, unsigned order=3) | |
| Constructor / Copy. | |
| DirectBSplineFilter (const Point4df &scale, bool normalize=false, unsigned order=3) | |
| DirectBSplineFilter (const DirectBSplineFilter &other) | |
| virtual | ~DirectBSplineFilter () |
| DirectBSplineFilter & | operator= (const DirectBSplineFilter &other) |
| unsigned | order () const |
| Parameters. | |
| Point4df | scale () const |
| Get spline scaling coefficient. | |
| bool | normalize () const |
| Get normalization mode. | |
| void | setOrder (const unsigned &order) |
| Set spline order Updates underlyong basis functions. | |
| void | setScale (const float &scale) |
| Set scaling coefficient Updates underlyong basis functions. | |
| void | setScale (const Point4df &scale) |
| Set scaling coefficient Updates underlyong basis functions. | |
| void | setNormalize (const bool &normalize=true) |
| Set normalization mode. | |
| template<typename OUTP, typename INP> | |
| carto::VolumeRef< OUTP > | execute (const carto::VolumeRef< INP > &in, carto::VolumeRef< OUTP > &out) const |
| Execution. | |
Public Member Functions inherited from aims::ConvolutionFilter< DiscreteBSpline > | |
| ConvolutionFilter (const DiscreteBSpline &bfunc) | |
| Constructor / Destructor / Copy. | |
| ConvolutionFilter (const std::vector< DiscreteBSpline > &bfunc=std::vector< DiscreteBSpline >()) | |
| A different basis function is used in each direction. | |
| ConvolutionFilter (const ConvolutionFilter &other) | |
| virtual | ~ConvolutionFilter () |
| ConvolutionFilter & | operator= (const ConvolutionFilter &other) |
| carto::VolumeRef< OUT > | execute (const carto::VolumeRef< IN > &in) const |
| Execution. | |
| carto::VolumeRef< OUT > | execute (const carto::VolumeRef< IN > &in, carto::VolumeRef< OUT > &out) const |
| Write result in an existing volume. | |
| const std::vector< bool > & | directions () const |
| Parameters. | |
| void | setBasisFunction (const DiscreteBSpline &func) |
| Change the basis functions. | |
| void | setBasisFunction (const std::vector< DiscreteBSpline > &func) |
| Change the basis functions. | |
| void | setDirections (const std::vector< bool > &dir) |
| Set the directions along which the filter is applied. | |
| void | setDirections (bool dirx, bool diry, bool dirz, bool dirt) |
| Set the directions along which the filter is applied. | |
| void | setVerbose (int verbose=1) |
| Verbosity level. | |
| void | setQuiet () |
| Equivalent to setVerbose(0) | |
Protected Attributes | |
| bool | _normalize |
Protected Attributes inherited from aims::ConvolutionFilter< DiscreteBSpline > | |
| std::vector< DiscreteBSpline > | _func |
| int | _verbose |
| std::vector< bool > | _dir |
This filter uses a convolution with Spline basis functions.
It can be used to interpolate a signal from its spline representation
See: Unser, Aldroubi & Eden, "B-Spline Signal Processing" in IEEE Transactions on Signal Processing (1993)
Definition at line 129 of file splinefilter.h.
| aims::DirectBSplineFilter::DirectBSplineFilter | ( | float | scale = 1., |
| bool | normalize = false, | ||
| unsigned | order = 3 ) |
Constructor / Copy.
References normalize(), order(), and scale().
Referenced by DirectBSplineFilter(), and operator=().
| aims::DirectBSplineFilter::DirectBSplineFilter | ( | const Point4df & | scale, |
| bool | normalize = false, | ||
| unsigned | order = 3 ) |
References normalize(), order(), and scale().
| aims::DirectBSplineFilter::DirectBSplineFilter | ( | const DirectBSplineFilter & | other | ) |
References DirectBSplineFilter().
|
virtual |
| carto::VolumeRef< OUTP > aims::DirectBSplineFilter::execute | ( | const carto::VolumeRef< INP > & | in, |
| carto::VolumeRef< OUTP > & | out ) const |
Execution.
Function-like operator that filters a given volume
Write result in an existing volume. If the allocated size differs from the needed resulting size, the volume is reallocated.
DirectBSplineFilter overrides the inherited version to add normalization.
Definition at line 52 of file splinefilter_d.h.
References aims::ConvolutionFilter< DiscreteBSpline >::_dir, aims::ConvolutionFilter< DiscreteBSpline >::_func, aims::ConvolutionFilter< BasisFunction >::execute(), carto::VolumeRef< typename T >::getSize(), and scale().
Referenced by setNormalize().
| bool aims::DirectBSplineFilter::normalize | ( | ) | const |
Get normalization mode.
Referenced by DirectBSplineFilter(), DirectBSplineFilter(), and setNormalize().
| DirectBSplineFilter & aims::DirectBSplineFilter::operator= | ( | const DirectBSplineFilter & | other | ) |
References DirectBSplineFilter().
| unsigned aims::DirectBSplineFilter::order | ( | ) | const |
Parameters.
Get spline order
Referenced by DirectBSplineFilter(), DirectBSplineFilter(), and setOrder().
| Point4df aims::DirectBSplineFilter::scale | ( | ) | const |
Get spline scaling coefficient.
Referenced by DirectBSplineFilter(), DirectBSplineFilter(), execute(), setScale(), and setScale().
| void aims::DirectBSplineFilter::setNormalize | ( | const bool & | normalize = true | ) |
Set normalization mode.
References aims::ConvolutionFilter< DiscreteBSpline >::ConvolutionFilter(), execute(), and normalize().
| void aims::DirectBSplineFilter::setOrder | ( | const unsigned & | order | ) |
Set spline order Updates underlyong basis functions.
References order().
| void aims::DirectBSplineFilter::setScale | ( | const float & | scale | ) |
Set scaling coefficient Updates underlyong basis functions.
References scale().
| void aims::DirectBSplineFilter::setScale | ( | const Point4df & | scale | ) |
Set scaling coefficient Updates underlyong basis functions.
References scale().
|
protected |
Definition at line 189 of file splinefilter.h.