![]() |
aimsalgo
5.1.2
Neuroimaging image processing
|
Convolution Filter. More...
#include <aims/pyramid/convolutionsubsampler.h>
Public Member Functions | |
ConvolutionSubSampler (unsigned r=2) | |
Constructor / Destructor / Copy. More... | |
ConvolutionSubSampler (const Point4du &r) | |
ConvolutionSubSampler (const BasisFunction &bfunc, unsigned r) | |
ConvolutionSubSampler (const std::vector< BasisFunction > &bfunc=std::vector< BasisFunction >(), const Point4du &r=Point4du(2, 2, 2, 2)) | |
ConvolutionSubSampler (const ConvolutionSubSampler &other) | |
virtual | ~ConvolutionSubSampler () |
ConvolutionSubSampler & | operator= (const ConvolutionSubSampler &other) |
template<typename OUT , typename IN > | |
carto::VolumeRef< OUT > | execute (const carto::VolumeRef< IN > &in) const |
Execution. More... | |
template<typename OUT , typename IN > | |
carto::VolumeRef< OUT > | execute (const carto::VolumeRef< IN > &in, carto::VolumeRef< OUT > &out) const |
Write result in an existing volume. More... | |
const std::vector< bool > & | directions () const |
Parameters. More... | |
const Point4du & | factor () const |
void | setBasisFunction (const BasisFunction &func) |
void | setBasisFunction (const std::vector< BasisFunction > &func) |
void | setFactor (unsigned r) |
void | setFactor (const Point4du &r) |
void | setDirections (const std::vector< bool > &dir) |
void | setDirections (bool dirx, bool diry, bool dirz, bool dirt) |
void | setVerbose (int verbose=1) |
void | setQuiet () |
Protected Attributes | |
std::vector< BasisFunction > | _func |
int | _verbose |
std::vector< bool > | _dir |
Point4du | _factor |
Convolution Filter.
Interpolate a discrete signal with a separable kernel of finite support. The basis function must possess:
Definition at line 53 of file convolutionsubsampler.h.
aims::ConvolutionSubSampler< F >::ConvolutionSubSampler | ( | unsigned | r = 2 | ) |
Constructor / Destructor / Copy.
Definition at line 48 of file convolutionsubsampler_d.h.
References aims::ConvolutionSubSampler< BasisFunction >::_dir, and verbose.
aims::ConvolutionSubSampler< F >::ConvolutionSubSampler | ( | const Point4du & | r | ) |
Definition at line 57 of file convolutionsubsampler_d.h.
References verbose.
aims::ConvolutionSubSampler< BasisFunction >::ConvolutionSubSampler | ( | const BasisFunction & | bfunc, |
unsigned | r | ||
) |
aims::ConvolutionSubSampler< BasisFunction >::ConvolutionSubSampler | ( | const std::vector< BasisFunction > & | bfunc = std::vector< BasisFunction >() , |
const Point4du & | r = Point4du(2, 2, 2, 2) |
||
) |
aims::ConvolutionSubSampler< BasisFunction >::ConvolutionSubSampler | ( | const ConvolutionSubSampler< BasisFunction > & | other | ) |
|
virtual |
Definition at line 94 of file convolutionsubsampler_d.h.
const std::vector< bool > & aims::ConvolutionSubSampler< F >::directions |
Parameters.
Definition at line 272 of file convolutionsubsampler_d.h.
carto::VolumeRef< OUT > aims::ConvolutionSubSampler< F >::execute | ( | const carto::VolumeRef< IN > & | in | ) | const |
Execution.
Function-like operator that filters a given volume
Definition at line 159 of file convolutionsubsampler_d.h.
References carto::VolumeRef< class >::copyHeaderFrom(), execute, carto::PropertySet::getProperty(), carto::VolumeRef< class >::getSizeT(), carto::VolumeRef< class >::getSizeX(), carto::VolumeRef< class >::getSizeY(), carto::VolumeRef< class >::getSizeZ(), carto::VolumeRef< class >::header(), and carto::PropertySet::setProperty().
Referenced by aims::DirectBSplineSubSampler::execute(), and aims::SplinePyramidBuilder::execute().
carto::VolumeRef< OUT > aims::ConvolutionSubSampler< F >::execute | ( | const carto::VolumeRef< IN > & | in, |
carto::VolumeRef< OUT > & | out | ||
) | const |
Write result in an existing volume.
If the allocated size differs from the needed resulting size, the volume is reallocated.
Definition at line 189 of file convolutionsubsampler_d.h.
References aims::convolutionsubsampler::at(), carto::VolumeRef< class >::getBorders(), carto::VolumeRef< class >::getSize(), carto::VolumeRef< class >::getSizeT(), carto::VolumeRef< class >::getSizeX(), carto::VolumeRef< class >::getSizeY(), carto::VolumeRef< class >::getSizeZ(), aims::ProgressInfo< class, class >::print(), and carto::toString().
const Point4du & aims::ConvolutionSubSampler< F >::factor |
Definition at line 278 of file convolutionsubsampler_d.h.
ConvolutionSubSampler< F > & aims::ConvolutionSubSampler< F >::operator= | ( | const ConvolutionSubSampler< BasisFunction > & | other | ) |
Definition at line 98 of file convolutionsubsampler_d.h.
Referenced by aims::DirectBSplineSubSampler::operator=().
void aims::ConvolutionSubSampler< BasisFunction >::setBasisFunction | ( | const BasisFunction & | func | ) |
Referenced by aims::DirectBSplineSubSampler::setFunctions().
void aims::ConvolutionSubSampler< BasisFunction >::setBasisFunction | ( | const std::vector< BasisFunction > & | func | ) |
void aims::ConvolutionSubSampler< F >::setDirections | ( | bool | dirx, |
bool | diry, | ||
bool | dirz, | ||
bool | dirt | ||
) |
Definition at line 317 of file convolutionsubsampler_d.h.
void aims::ConvolutionSubSampler< F >::setDirections | ( | const std::vector< bool > & | dir | ) |
Definition at line 308 of file convolutionsubsampler_d.h.
Referenced by aims::SplinePyramidBuilder::execute().
void aims::ConvolutionSubSampler< F >::setFactor | ( | const Point4du & | r | ) |
Definition at line 302 of file convolutionsubsampler_d.h.
void aims::ConvolutionSubSampler< F >::setFactor | ( | unsigned | r | ) |
Definition at line 296 of file convolutionsubsampler_d.h.
Referenced by aims::DirectBSplineSubSampler::setFactor().
void aims::ConvolutionSubSampler< F >::setQuiet |
Definition at line 332 of file convolutionsubsampler_d.h.
void aims::ConvolutionSubSampler< F >::setVerbose | ( | int | verbose = 1 | ) |
Definition at line 326 of file convolutionsubsampler_d.h.
References verbose.
Referenced by aims::SplinePyramidBuilder::execute().
|
protected |
Definition at line 108 of file convolutionsubsampler.h.
Referenced by aims::ConvolutionSubSampler< BasisFunction >::ConvolutionSubSampler().
|
protected |
Definition at line 109 of file convolutionsubsampler.h.
|
protected |
Definition at line 106 of file convolutionsubsampler.h.
|
protected |
Definition at line 107 of file convolutionsubsampler.h.