![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
The template class to make convolutions. More...
#include <aims/signalfilter/convol.h>
Public Member Functions | |
AimsConvolution (bool safe=true) | |
virtual | ~AimsConvolution () |
AimsData< T > | doit (AimsData< T > &, AimsData< T > &) |
void | set_safe_status (bool safe=true) |
Protected Member Functions | |
T | doit_voxel (AimsData< T > &img, AimsData< T > &kernel, int x, int y, int z, int t) |
called for each voxel (user selected function) More... | |
virtual T | doit_voxel_safe (AimsData< T > &img, AimsData< T > &kernel, int x, int y, int z, int t) |
called for each voxel (safe version) More... | |
virtual T | doit_voxel_unsafe (AimsData< T > &img, AimsData< T > &kernel, int x, int y, int z, int t) |
called for each voxel (unsafe version) More... | |
T | min () const |
T | max () const |
template<> | |
int8_t | min () const |
template<> | |
int8_t | max () const |
template<> | |
uint8_t | min () const |
template<> | |
uint8_t | max () const |
template<> | |
int16_t | min () const |
template<> | |
int16_t | max () const |
template<> | |
uint16_t | min () const |
template<> | |
uint16_t | max () const |
template<> | |
int32_t | min () const |
template<> | |
int32_t | max () const |
template<> | |
uint32_t | min () const |
template<> | |
uint32_t | max () const |
template<> | |
float | min () const |
template<> | |
float | max () const |
template<> | |
double | min () const |
template<> | |
double | max () const |
template<> | |
char | min () const |
template<> | |
char | max () const |
template<> | |
long | min () const |
template<> | |
long | max () const |
template<> | |
ulong | min () const |
template<> | |
ulong | max () const |
Protected Attributes | |
T(AimsConvolution::* | _doit_voxel_method )(AimsData< T > &img, AimsData< T > &kernel, int x, int y, int z, int t) |
bool | _safe |
The template class to make convolutions.
This class is useful to perform a convolution of a data by a given kernel.
if the image has a border unsafe version of convolution is used (no test on borders).
|
inline |
Definition at line 56 of file convol.h.
References AimsConvolution< T >::set_safe_status().
|
inlinevirtual |
Definition at line 59 of file convol.h.
References AimsConvolution< T >::doit().
|
inline |
Definition at line 120 of file convol.h.
References AimsConvolution< T >::_safe, ASSERT, aims::Border::borderWidth(), AimsData< T >::dimT(), AimsData< T >::dimX(), AimsData< T >::dimY(), AimsData< T >::dimZ(), AimsConvolution< T >::doit_voxel(), AimsConvolution< T >::max(), AimsConvolution< T >::min(), AimsConvolution< T >::set_safe_status(), AimsData< T >::setSizeXYZT(), AimsData< T >::sizeT(), AimsData< T >::sizeX(), AimsData< T >::sizeY(), and AimsData< T >::sizeZ().
Referenced by aims::DiffusionSmoother< T >::doSmoothing(), aims::MaskedDiffusionSmoother< T, std::vector< Point3df > >::doSmoothing(), and AimsConvolution< T >::~AimsConvolution().
|
inlineprotected |
called for each voxel (user selected function)
Definition at line 152 of file convol.h.
References AimsConvolution< T >::_doit_voxel_method.
Referenced by AimsConvolution< T >::doit(), and AimsConvolution< T >::set_safe_status().
|
inlineprotectedvirtual |
called for each voxel (safe version)
Reimplemented in AimsMaskedConvolution< T >.
Definition at line 159 of file convol.h.
References AimsData< T >::dimX(), AimsData< T >::dimY(), and AimsData< T >::dimZ().
Referenced by AimsMaskedConvolution< T >::doit_voxel_safe(), AimsConvolution< T >::set_safe_status(), and AimsMaskedConvolution< T >::~AimsMaskedConvolution().
|
inlineprotectedvirtual |
called for each voxel (unsafe version)
Reimplemented in AimsMaskedConvolution< T >.
Definition at line 195 of file convol.h.
References AimsData< T >::dimX(), AimsData< T >::dimY(), and AimsData< T >::dimZ().
Referenced by AimsMaskedConvolution< T >::doit_voxel_unsafe(), AimsConvolution< T >::set_safe_status(), and AimsMaskedConvolution< T >::~AimsMaskedConvolution().
|
protected |
Referenced by AimsConvolution< T >::doit(), and AimsConvolution< T >::set_safe_status().
|
inlineprotected |
Definition at line 250 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
Definition at line 266 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
Definition at line 282 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
Definition at line 298 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
Definition at line 314 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
Definition at line 330 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 381 of file convol.h.
References std::numeric_limits< class >::max().
|
inlineprotected |
|
inlineprotected |
|
protected |
Referenced by AimsConvolution< T >::doit(), and AimsConvolution< T >::set_safe_status().
|
inlineprotected |
Definition at line 242 of file convol.h.
References std::numeric_limits< class >::min().
|
inlineprotected |
|
inlineprotected |
Definition at line 274 of file convol.h.
References std::numeric_limits< class >::min().
|
inlineprotected |
|
inlineprotected |
Definition at line 306 of file convol.h.
References std::numeric_limits< class >::min().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 373 of file convol.h.
References std::numeric_limits< class >::min().
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 63 of file convol.h.
References AimsConvolution< T >::_doit_voxel_method, AimsConvolution< T >::_safe, AimsConvolution< T >::doit_voxel(), AimsConvolution< T >::doit_voxel_safe(), AimsConvolution< T >::doit_voxel_unsafe(), AimsConvolution< T >::max(), and AimsConvolution< T >::min().
Referenced by AimsConvolution< T >::AimsConvolution(), and AimsConvolution< T >::doit().
|
protected |
Definition at line 84 of file convol.h.
Referenced by AimsConvolution< T >::doit_voxel(), and AimsConvolution< T >::set_safe_status().
|
protected |
Definition at line 87 of file convol.h.
Referenced by AimsConvolution< T >::doit(), and AimsConvolution< T >::set_safe_status().