![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
aims::ImageAlgorithmInterface is the interface for an image processing algorithm. More...
#include <aims/algorithm/imagealgorithm.h>
Public Types | |
typedef T | VoxelType |
Public Member Functions | |
virtual Point4dl | getOutputImageDimensions (const Point4dl &dims) const |
Returns the output dimensions of the processed image. More... | |
virtual Point4df | getOutputImageVoxelSize (const Point4df &voxelsize) const |
Returns the output voxel size of the processed image. More... | |
virtual void | execute (const carto::VolumeRef< T > &in, carto::VolumeRef< T > &out) const =0 |
ImageAlgorithmInterface<T> Pure virtual method. More... | |
virtual void | setOptions (const carto::Object &) |
virtual void | updateOptions (const carto::Object &) |
virtual ImageAlgorithmInterface * | clone () const =0 |
ImageAlgorithmInterface<T> Pure virtual method. More... | |
virtual Point4dl | getOutputImageDimensions (const long &dx=1, const long &dy=1, const long &dz=1, const long &dt=1) const |
virtual Point4df | getOutputImageVoxelSize (const float &vx=1.0, const float &vy=1.0, const float &vz=1.0, const float &vt=1.0) const |
virtual carto::VolumeRef< T > | execute (const carto::VolumeRef< T > &in) const |
virtual AimsData< T > | execute (const AimsData< T > &in) const |
virtual void | setVerbose (int level) |
virtual void | setQuiet () |
virtual | ~ImageAlgorithmInterface () |
Protected Member Functions | |
ImageAlgorithmInterface () | |
ImageAlgorithmInterface (const ImageAlgorithmInterface &other) | |
ImageAlgorithmInterface & | operator= (const ImageAlgorithmInterface &other) |
Protected Attributes | |
int | _verbose |
aims::ImageAlgorithmInterface is the interface for an image processing algorithm.
Image processing algorithms take volumes as input and output. Output dimensions and voxel size may differ from input ones.
Definition at line 56 of file imagealgorithm.h.
typedef T aims::ImageAlgorithmInterface< T >::VoxelType |
Definition at line 74 of file imagealgorithm.h.
|
inlinevirtual |
Definition at line 181 of file imagealgorithm.h.
|
inlineprotected |
Definition at line 183 of file imagealgorithm.h.
References verbose.
|
inlineprotected |
Definition at line 184 of file imagealgorithm.h.
|
pure virtual |
ImageAlgorithmInterface<T>
Pure virtual method.
Clone the object
Implemented in aims::singlechannel::ElementFilteringImageAlgorithm< T >, aims::ImageAlgorithm< T >, aims::singlechannel::LinearFilteringImageAlgorithm< T >, aims::ElementFilteringImageAlgorithm< T >, aims::singlechannel::SubSamplingImageAlgorithm< T >, aims::NotNullMedianFilter< T >, aims::LinearFilteringImageAlgorithm< T >, aims::NotNullMeanFilter< T >, aims::SubSamplingImageAlgorithm< T >, aims::ExtremaDifferenceFilter< T >, aims::MedianFilter< T >, aims::MeanFilter< T >, aims::MinFilter< T >, aims::MaxFilter< T >, aims::MajorityFilter< T >, aims::SumFilter< T >, aims::VarFilter< T >, aims::StDevFilter< T >, and aims::GaborFilter< T >.
Referenced by aims::ImageAlgorithmInterface< T >::updateOptions().
|
pure virtual |
ImageAlgorithmInterface<T>
Pure virtual method.
Returns the image processed by an algorithm on the input image into an already allocated output volume.
in | Input image to process |
out | Output image processed |
Implemented in aims::singlechannel::ElementFilteringImageAlgorithm< T >, aims::ImageAlgorithm< T >, aims::singlechannel::LinearFilteringImageAlgorithm< T >, and aims::singlechannel::SubSamplingImageAlgorithm< T >.
Referenced by aims::ImageAlgorithm< T >::doit(), aims::ImageAlgorithmInterface< T >::execute(), aims::ImageAlgorithmSwitch< T, false >::execute(), aims::ImageAlgorithmSwitch< T, true >::execute(), and aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize().
|
inlinevirtual |
Definition at line 140 of file imagealgorithm.h.
References carto::VolumeRef< T >::copyHeaderFrom(), aims::ImageAlgorithmInterface< T >::execute(), aims::ImageAlgorithmInterface< T >::getOutputImageDimensions(), aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize(), carto::VolumeRef< T >::getSizeT(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), carto::VolumeRef< T >::getSizeZ(), and carto::VolumeRef< T >::header().
|
inlinevirtual |
Definition at line 163 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::execute(), and AimsData< T >::volume().
|
inlinevirtual |
Returns the output dimensions of the processed image.
This is used when output image does not have the same dimensions as input image.
Point4dl | dims dimensions of the input image. |
Point4dl
dimensions of the output image.The default implementation returns same dimensions as input.
Reimplemented in aims::ImageAlgorithm< T >, and aims::singlechannel::SubSamplingImageAlgorithm< T >.
Definition at line 85 of file imagealgorithm.h.
Referenced by aims::ImageAlgorithmInterface< T >::execute(), and aims::ImageAlgorithmInterface< T >::getOutputImageDimensions().
|
inlinevirtual |
Definition at line 122 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::getOutputImageDimensions().
|
inlinevirtual |
Returns the output voxel size of the processed image.
This is used when output image does not have the same voxel size as input image.
Point4df | voxelsize voxel size of the input image. |
Point4df
voxel size of the output image.The default implementation returns same voxel size as input.
Reimplemented in aims::ImageAlgorithm< T >, and aims::singlechannel::SubSamplingImageAlgorithm< T >.
Definition at line 96 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::execute().
Referenced by aims::ImageAlgorithmInterface< T >::execute(), and aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize().
|
inlinevirtual |
Definition at line 131 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize().
|
inlineprotected |
Definition at line 187 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::_verbose.
Referenced by aims::ImageAlgorithm< T >::operator=().
|
inlinevirtual |
Reimplemented in aims::singlechannel::ElementFilteringImageAlgorithm< T >, aims::singlechannel::LinearFilteringImageAlgorithm< T >, aims::ElementFilteringImageAlgorithm< T >, and aims::LinearFilteringImageAlgorithm< T >.
Definition at line 111 of file imagealgorithm.h.
|
inlinevirtual |
Definition at line 173 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::setVerbose().
|
inlinevirtual |
Reimplemented in aims::ImageAlgorithm< T >.
Definition at line 172 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::_verbose.
Referenced by aims::ImageAlgorithmInterface< T >::setQuiet(), and aims::ImageAlgorithm< T >::setVerbose().
|
inlinevirtual |
Reimplemented in aims::singlechannel::ElementFilteringImageAlgorithm< T >, aims::singlechannel::LinearFilteringImageAlgorithm< T >, aims::ElementFilteringImageAlgorithm< T >, and aims::LinearFilteringImageAlgorithm< T >.
Definition at line 112 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::clone().
|
protected |
Definition at line 175 of file imagealgorithm.h.
Referenced by aims::singlechannel::SubSamplingImageAlgorithm< T >::execute(), aims::singlechannel::LinearFilteringImageAlgorithm< T >::execute(), aims::ImageAlgorithm< T >::execute(), aims::singlechannel::ElementFilteringImageAlgorithm< T >::execute(), aims::ImageAlgorithmInterface< T >::operator=(), and aims::ImageAlgorithmInterface< T >::setVerbose().