ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkIterativeDeconvolutionImageFilter.h>
Abstract base class for filters that implement iterative deconvolution algorithms.
This filter implements methods common to iterative deconvolution algorithms. The input blurred image is set with the usual SetInput() method and the blurring kernel is set with the SetKernelImage() method.
The number of iterations can be set with the method SetNumberOfIterations(). This class emits an IterationEvent at the start of each iteration. Iteration can be terminated early by calling SetStopIteration( bool ) with the argument set to true. To resume iterating, you must call SetStopIteration( bool ) with the argument set to false before calling Update() a second time.
This code was adapted from the Insight Journal contribution:
"Deconvolution: infrastructure and reference algorithms" by Gaetan Lehmann http://hdl.handle.net/10380/3207
Definition at line 51 of file itkIterativeDeconvolutionImageFilter.h.
typedef SmartPointer< const Self > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::ConstPointer |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 59 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::FFTFilterType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::FFTFilterType [protected] |
Because the inputs are real, we can use the specialized filters for real-to-complex Fourier transforms.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Definition at line 133 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::IFFTFilterType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::IFFTFilterType [protected] |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Definition at line 134 of file itkIterativeDeconvolutionImageFilter.h.
typedef TInputImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InputImageType |
Other useful typedefs.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 62 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InternalComplexImagePointerType |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 71 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImageType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InternalComplexImageType |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 70 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InternalComplexType |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 69 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InternalImagePointerType |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 68 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalImageType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::InternalImageType |
Internal types used by the FFT filters.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 67 of file itkIterativeDeconvolutionImageFilter.h.
typedef TKernelImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::KernelImageType |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 63 of file itkIterativeDeconvolutionImageFilter.h.
typedef TOutputImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 64 of file itkIterativeDeconvolutionImageFilter.h.
typedef SmartPointer< Self > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Pointer |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 58 of file itkIterativeDeconvolutionImageFilter.h.
typedef IterativeDeconvolutionImageFilter itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Self |
Standard typedefs.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 56 of file itkIterativeDeconvolutionImageFilter.h.
typedef FFTConvolutionImageFilter< TInputImage, TOutputImage > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Superclass |
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
Definition at line 57 of file itkIterativeDeconvolutionImageFilter.h.
itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::IterativeDeconvolutionImageFilter | ( | ) | [protected] |
virtual itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::~IterativeDeconvolutionImageFilter | ( | ) | [protected, virtual] |
itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::IterativeDeconvolutionImageFilter | ( | const Self & | ) | [private] |
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Finish | ( | ProgressAccumulator * | progress, |
float | progressWeight | ||
) | [protected, virtual] |
Runs after iterating.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GenerateData | ( | ) | [protected, virtual] |
Generate the output image data. Uses a minipipeline, so ThreadedGenerateData is not overridden.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GenerateInputRequestedRegion | ( | ) | [protected, virtual] |
This filter needs the entire image kernel, which in general is going to be a different size then the output requested region. As such, this filter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
virtual const InternalImageType* itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GetCurrentEstimate | ( | ) | [virtual] |
Set/get the current estimate.
virtual unsigned int itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GetIteration | ( | ) | const [virtual] |
Get the current iteration.
virtual const char* itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Runtime information support.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
virtual unsigned int itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GetNumberOfIterations | ( | ) | [virtual] |
Set/get the number of iterations.
virtual bool itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::GetStopIteration | ( | ) | const [virtual] |
Stop iteration. When this method is called, the iteration will halt after the current iteration has completed.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Initialize | ( | ProgressAccumulator * | progress, |
float | progressWeight, | ||
float | iterationProgressWeight | ||
) | [protected, virtual] |
Runs before iterating .
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::Iteration | ( | ProgressAccumulator * | , |
float | |||
) | [protected, pure virtual] |
Performs an iteration.
Implemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >.
void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage > >, and itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ConvolutionImageFilterBase< TInputImage, TKernelImage, TOutputImage >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >.
virtual void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::SetNumberOfIterations | ( | unsigned int | _arg | ) | [virtual] |
Set/get the number of iterations.
void itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::SetStopIteration | ( | bool | stop | ) | [inline] |
Stop iteration. When this method is called, the iteration will halt after the current iteration has completed.
Definition at line 86 of file itkIterativeDeconvolutionImageFilter.h.
InternalImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_CurrentEstimate [protected] |
Intermediate results. Protected for easy access by subclasses.
Definition at line 131 of file itkIterativeDeconvolutionImageFilter.h.
unsigned long itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_InputMTime [private] |
Modified times for the input and kernel.
Definition at line 152 of file itkIterativeDeconvolutionImageFilter.h.
unsigned int itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_Iteration [private] |
The current iteration.
Definition at line 146 of file itkIterativeDeconvolutionImageFilter.h.
unsigned long itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_KernelMTime [private] |
Definition at line 153 of file itkIterativeDeconvolutionImageFilter.h.
unsigned int itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_NumberOfIterations [private] |
Number of iterations to run.
Definition at line 143 of file itkIterativeDeconvolutionImageFilter.h.
bool itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_StopIteration [private] |
Flag indicating whether iteration should be stopped.
Definition at line 149 of file itkIterativeDeconvolutionImageFilter.h.
InternalComplexImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage >::m_TransferFunction [protected] |
Discrete Fourier transform of the padded kernel.
Definition at line 128 of file itkIterativeDeconvolutionImageFilter.h.