#include <itkLandweberDeconvolutionImageFilter.h>
Deconvolve an image using the Landweber deconvolution algorithm.
This filter implements the Landweber deconvolution algorithm as defined in [9]. The algorithm assumes that the input image has been formed by a linear shift-invariant system with a known kernel.
The Landweber algorithm converges to a solution that minimizes the sum of squared errors \(||f \otimes h - g||\) where \(f\) is the estimate of the unblurred image, \(\otimes\) is the convolution operator, \(h\) is the blurring kernel, and \(g\) is the blurred input image. As such, it is best suited for images that have zero-mean Gaussian white noise.
This is the base implementation of the Landweber algorithm. It may produce results with negative values. For a version of this algorithm that enforces a positivity constraint on each intermediate solution, see ProjectedLandweberDeconvolutionImageFilter.
This code was adapted from the Insight Journal contribution:
"Deconvolution: infrastructure and reference algorithms" by Gaetan Lehmann https://doi.org/10.54294/tvgfv1
Definition at line 98 of file itkLandweberDeconvolutionImageFilter.h.
Private Types | |
using | LandweberFilterType |
using | LandweberFunctor |
Private Attributes | |
double | m_Alpha {} |
IFFTFilterType::Pointer | m_IFFTFilter {} |
LandweberFilterType::Pointer | m_LandweberFilter {} |
InternalComplexImagePointerType | m_TransformedInput {} |
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::ConstPointer = SmartPointer<const Self> |
Definition at line 108 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InputImageType = TInputImage |
Other useful type alias.
Definition at line 111 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::KernelImageType = TKernelImage |
Definition at line 112 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 159 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 157 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::OutputImageType = TOutputImage |
Definition at line 113 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Pointer = SmartPointer<Self> |
Definition at line 107 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Self = LandweberDeconvolutionImageFilter |
Standard type alias.
Definition at line 105 of file itkLandweberDeconvolutionImageFilter.h.
using itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Superclass = IterativeDeconvolutionImageFilter<TInputImage, TKernelImage, TOutputImage, TInternalPrecision> |
Definition at line 106 of file itkLandweberDeconvolutionImageFilter.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotected |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::FFTConvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, and itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
overrideprotectedvirtual |
Runs after iterating.
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
|
virtual |
Set/get relaxation factor.
|
overridevirtual |
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, and itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
References LandweberDeconvolutionImageFilter().
|
overrideprotectedvirtual |
Runs before iterating .
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
overrideprotectedvirtual |
Performs an iteration.
Implements itk::IterativeDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double > >, itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
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::IterativeDeconvolutionImageFilter< TInputImage, TInputImage, TInputImage, double >.
|
virtual |
Set/get relaxation factor.
|
private |
Definition at line 153 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 165 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 164 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 155 of file itkLandweberDeconvolutionImageFilter.h.