![]() |
aimsalgo
5.1.2
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 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 68 of file imagealgorithm.h.
typedef T aims::ImageAlgorithmInterface< T >::VoxelType |
Definition at line 73 of file imagealgorithm.h.
|
inlinevirtual |
Definition at line 174 of file imagealgorithm.h.
|
inlineprotected |
Definition at line 176 of file imagealgorithm.h.
References verbose.
|
inlineprotected |
Definition at line 177 of file imagealgorithm.h.
|
pure virtual |
ImageAlgorithmInterface<T>
Pure virtual method.
Clone the object
Implemented in aims::VarFilter< T >, aims::SumFilter< T >, aims::StDevFilter< T >, aims::MinFilter< T >, aims::NotNullMedianFilter< T >, aims::MedianFilter< T >, aims::NotNullMeanFilter< T >, aims::MeanFilter< T >, aims::MaxFilter< T >, aims::NotNullMajorityFilter< T >, aims::MajorityFilter< T >, aims::GaborFilter< T >, aims::singlechannel::ElementFilteringImageAlgorithm< T >, aims::singlechannel::LinearFilteringImageAlgorithm< T >, aims::ElementFilteringImageAlgorithm< T >, aims::LinearFilteringImageAlgorithm< T >, aims::ExtremaDifferenceFilter< T >, aims::singlechannel::SubSamplingImageAlgorithm< T >, aims::SubSamplingImageAlgorithm< T >, and aims::ImageAlgorithm< T >.
|
inlinevirtual |
Definition at line 139 of file imagealgorithm.h.
References carto::VolumeRef< class >::copyHeaderFrom(), aims::ImageAlgorithmInterface< T >::execute(), aims::ImageAlgorithmInterface< T >::getOutputImageDimensions(), aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize(), 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().
|
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::singlechannel::LinearFilteringImageAlgorithm< T >, aims::singlechannel::SubSamplingImageAlgorithm< T >, and aims::ImageAlgorithm< T >.
Referenced by aims::ImageAlgorithmInterface< T >::execute().
|
inlinevirtual |
Definition at line 121 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::getOutputImageDimensions().
|
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::singlechannel::SubSamplingImageAlgorithm< T >, and aims::ImageAlgorithm< T >.
Definition at line 84 of file imagealgorithm.h.
Referenced by aims::ImageAlgorithmInterface< T >::execute(), and aims::ImageAlgorithmInterface< T >::getOutputImageDimensions().
|
inlinevirtual |
Definition at line 130 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize().
|
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::singlechannel::SubSamplingImageAlgorithm< T >, and aims::ImageAlgorithm< T >.
Definition at line 95 of file imagealgorithm.h.
Referenced by aims::ImageAlgorithmInterface< T >::execute(), and aims::ImageAlgorithmInterface< T >::getOutputImageVoxelSize().
|
inlineprotected |
Definition at line 180 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 110 of file imagealgorithm.h.
|
inlinevirtual |
Definition at line 166 of file imagealgorithm.h.
References aims::ImageAlgorithmInterface< T >::setVerbose().
|
inlinevirtual |
Reimplemented in aims::ImageAlgorithm< T >.
Definition at line 165 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 111 of file imagealgorithm.h.
|
protected |
Definition at line 168 of file imagealgorithm.h.
Referenced by aims::ImageAlgorithm< T >::execute(), aims::ImageAlgorithmInterface< T >::operator=(), and aims::ImageAlgorithmInterface< T >::setVerbose().