ITK
4.4.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.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef Superclass::InternalComplexImagePointerType | InternalComplexImagePointerType |
typedef Superclass::InternalComplexImageType | InternalComplexImageType |
typedef Superclass::InternalComplexType | InternalComplexType |
typedef Superclass::InternalImagePointerType | InternalImagePointerType |
typedef Superclass::InternalImageType | InternalImageType |
typedef TKernelImage | KernelImageType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef IterativeDeconvolutionImageFilter | Self |
typedef FFTConvolutionImageFilter < TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | Superclass |
Public Types inherited from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
typedef Superclass::BoundaryConditionPointerType | BoundaryConditionPointerType |
typedef Superclass::BoundaryConditionType | BoundaryConditionType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef InputImageType::IndexType | InputIndexType |
typedef InputImageType::PixelType | InputPixelType |
typedef InputImageType::RegionType | InputRegionType |
typedef InputImageType::SizeType | InputSizeType |
typedef InternalComplexImageType::Pointer | InternalComplexImagePointerType |
typedef Image < InternalComplexType, TInputImage::ImageDimension > | InternalComplexImageType |
typedef std::complex < TInternalPrecision > | InternalComplexType |
typedef InternalImageType::Pointer | InternalImagePointerType |
typedef Image < TInternalPrecision, TInputImage::ImageDimension > | InternalImageType |
typedef TKernelImage | KernelImageType |
typedef KernelImageType::IndexType | KernelIndexType |
typedef KernelImageType::PixelType | KernelPixelType |
typedef KernelImageType::RegionType | KernelRegionType |
typedef KernelImageType::SizeType | KernelSizeType |
typedef TOutputImage | OutputImageType |
typedef OutputImageType::IndexType | OutputIndexType |
typedef OutputImageType::PixelType | OutputPixelType |
typedef OutputImageType::RegionType | OutputRegionType |
typedef OutputImageType::SizeType | OutputSizeType |
typedef SmartPointer< Self > | Pointer |
typedef FFTConvolutionImageFilter | Self |
typedef InputSizeType::SizeValueType | SizeValueType |
typedef ConvolutionImageFilterBase < TInputImage, TKernelImage, TOutputImage > | Superclass |
Public Types inherited from itk::ConvolutionImageFilterBase< TInputImage, TKernelImage, TOutputImage > | |
typedef BoundaryConditionType * | BoundaryConditionPointerType |
typedef ImageBoundaryCondition < TInputImage > | BoundaryConditionType |
typedef SmartPointer< const Self > | ConstPointer |
typedef ZeroFluxNeumannBoundaryCondition < TInputImage > | DefaultBoundaryConditionType |
typedef TInputImage | InputImageType |
typedef InputImageType::IndexType | InputIndexType |
typedef InputImageType::PixelType | InputPixelType |
typedef InputImageType::RegionType | InputRegionType |
typedef InputImageType::SizeType | InputSizeType |
typedef TKernelImage | KernelImageType |
typedef KernelImageType::IndexType | KernelIndexType |
typedef KernelImageType::PixelType | KernelPixelType |
typedef KernelImageType::RegionType | KernelRegionType |
typedef KernelImageType::SizeType | KernelSizeType |
typedef TOutputImage | OutputImageType |
typedef OutputImageType::IndexType | OutputIndexType |
typedef OutputImageType::PixelType | OutputPixelType |
enum | OutputRegionModeType { SAME = 0, VALID } |
typedef OutputImageType::RegionType | OutputRegionType |
typedef OutputImageType::SizeType | OutputSizeType |
typedef SmartPointer< Self > | Pointer |
typedef ConvolutionImageFilterBase | Self |
typedef InputSizeType::SizeValueType | SizeValueType |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Protected Types | |
typedef Superclass::FFTFilterType | FFTFilterType |
typedef Superclass::IFFTFilterType | IFFTFilterType |
Protected Types inherited from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
typedef RealToHalfHermitianForwardFFTImageFilter < InternalImageType, InternalComplexImageType > | FFTFilterType |
typedef HalfHermitianToRealInverseFFTImageFilter < InternalComplexImageType, InternalImageType > | IFFTFilterType |
Protected Attributes | |
InternalImagePointerType | m_CurrentEstimate |
InternalComplexImagePointerType | m_TransferFunction |
Private Member Functions | |
IterativeDeconvolutionImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ModifiedTimeType | m_InputMTime |
unsigned int | m_Iteration |
ModifiedTimeType | m_KernelMTime |
unsigned int | m_NumberOfIterations |
bool | m_StopIteration |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
static Pointer | New () |
Static Public Attributes inherited from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
typedef SmartPointer< const Self > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::ConstPointer |
Definition at line 62 of file itkIterativeDeconvolutionImageFilter.h.
|
protected |
Definition at line 136 of file itkIterativeDeconvolutionImageFilter.h.
|
protected |
Definition at line 137 of file itkIterativeDeconvolutionImageFilter.h.
typedef TInputImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InputImageType |
Other useful typedefs.
Definition at line 65 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexImagePointerType |
Definition at line 74 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImageType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexImageType |
Definition at line 73 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexType |
Definition at line 72 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalImagePointerType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalImagePointerType |
Definition at line 71 of file itkIterativeDeconvolutionImageFilter.h.
typedef Superclass::InternalImageType itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalImageType |
Internal types used by the FFT filters.
Definition at line 70 of file itkIterativeDeconvolutionImageFilter.h.
typedef TKernelImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::KernelImageType |
Definition at line 66 of file itkIterativeDeconvolutionImageFilter.h.
typedef TOutputImage itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::OutputImageType |
Definition at line 67 of file itkIterativeDeconvolutionImageFilter.h.
typedef SmartPointer< Self > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Pointer |
Definition at line 61 of file itkIterativeDeconvolutionImageFilter.h.
typedef IterativeDeconvolutionImageFilter itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Self |
Standard typedefs.
Definition at line 56 of file itkIterativeDeconvolutionImageFilter.h.
typedef FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Superclass |
Definition at line 60 of file itkIterativeDeconvolutionImageFilter.h.
|
protected |
|
protectedvirtual |
|
private |
|
protectedvirtual |
Runs after iterating.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, itk::ParametricBlindLeastSquaresDeconvolutionImageFilter< TInputImage, TKernelSource, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
protectedvirtual |
Generate the output image data. Uses a minipipeline, so ThreadedGenerateData is not overridden.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
protectedvirtual |
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, TInternalPrecision >.
|
virtual |
|
virtual |
Get the current iteration.
|
virtual |
Set/get the current estimate.
|
virtual |
Runtime information support.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, itk::ParametricBlindLeastSquaresDeconvolutionImageFilter< TInputImage, TKernelSource, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
virtual |
Set/get the number of iterations.
|
virtual |
Stop iteration. When this method is called, the iteration will halt after the current iteration has completed.
|
protectedvirtual |
Runs before iterating .
Reimplemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, itk::ParametricBlindLeastSquaresDeconvolutionImageFilter< TInputImage, TKernelSource, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
protectedpure virtual |
Performs an iteration.
Implemented in itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, itk::ParametricBlindLeastSquaresDeconvolutionImageFilter< TInputImage, TKernelSource, TOutputImage >, itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
private |
|
protectedvirtual |
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, TInternalPrecision >, itk::ParametricBlindLeastSquaresDeconvolutionImageFilter< TInputImage, TKernelSource, TOutputImage >, and itk::RichardsonLucyDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
virtual |
Set/get the number of iterations.
|
inline |
Stop iteration. When this method is called, the iteration will halt after the current iteration has completed.
Definition at line 89 of file itkIterativeDeconvolutionImageFilter.h.
|
protected |
Intermediate results. Protected for easy access by subclasses.
Definition at line 134 of file itkIterativeDeconvolutionImageFilter.h.
|
private |
Modified times for the input and kernel.
Definition at line 155 of file itkIterativeDeconvolutionImageFilter.h.
|
private |
The current iteration.
Definition at line 149 of file itkIterativeDeconvolutionImageFilter.h.
|
private |
Definition at line 156 of file itkIterativeDeconvolutionImageFilter.h.
|
private |
Number of iterations to run.
Definition at line 146 of file itkIterativeDeconvolutionImageFilter.h.
|
private |
Flag indicating whether iteration should be stopped.
Definition at line 152 of file itkIterativeDeconvolutionImageFilter.h.
|
protected |
Discrete Fourier transform of the padded kernel.
Definition at line 131 of file itkIterativeDeconvolutionImageFilter.h.