ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkLandweberDeconvolutionImageFilter.h>
Deconvolve an image using the Landweber deconvolution algorithm.
This filter implements the Landweber deconvolution algorthm as defined in Bertero M and Boccacci P, "Introduction to Inverse Problems in Imaging", 1998. 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 where is the estimate of the unblurred image, is the convolution operator, is the blurring kernel, and 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 http://hdl.handle.net/10380/3207
Definition at line 101 of file itkLandweberDeconvolutionImageFilter.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 LandweberDeconvolutionImageFilter | Self |
typedef IterativeDeconvolutionImageFilter < TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | Superclass |
Public Types inherited from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
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 |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual void | SetAlpha (double _arg) |
virtual double | GetAlpha () |
Public Member Functions inherited from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
virtual const InternalImageType * | GetCurrentEstimate () const |
virtual unsigned int | GetIteration () const |
virtual InternalImageType * | GetModifiableCurrentEstimate () |
virtual void | SetNumberOfIterations (unsigned int _arg) |
virtual unsigned int | GetNumberOfIterations () |
void | SetStopIteration (bool stop) |
virtual bool | GetStopIteration () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef Superclass::FFTFilterType | FFTFilterType |
typedef Superclass::IFFTFilterType | IFFTFilterType |
Protected Types inherited from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
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 |
Private Member Functions | |
LandweberDeconvolutionImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
double | m_Alpha |
IFFTFilterType::Pointer | m_IFFTFilter |
LandweberFilterType::Pointer | m_LandweberFilter |
InternalComplexImagePointerType | m_TransformedInput |
Additional Inherited Members | |
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) |
Protected Attributes inherited from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > | |
InternalImagePointerType | m_CurrentEstimate |
InternalComplexImagePointerType | m_TransferFunction |
typedef SmartPointer< const Self > itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::ConstPointer |
Definition at line 112 of file itkLandweberDeconvolutionImageFilter.h.
|
protected |
Definition at line 151 of file itkLandweberDeconvolutionImageFilter.h.
|
protected |
Definition at line 152 of file itkLandweberDeconvolutionImageFilter.h.
typedef TInputImage itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InputImageType |
Other useful typedefs.
Definition at line 115 of file itkLandweberDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImagePointerType itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexImagePointerType |
Definition at line 124 of file itkLandweberDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexImageType itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexImageType |
Definition at line 123 of file itkLandweberDeconvolutionImageFilter.h.
typedef Superclass::InternalComplexType itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalComplexType |
Definition at line 122 of file itkLandweberDeconvolutionImageFilter.h.
typedef Superclass::InternalImagePointerType itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalImagePointerType |
Definition at line 121 of file itkLandweberDeconvolutionImageFilter.h.
typedef Superclass::InternalImageType itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::InternalImageType |
Internal types used by the FFT filters.
Definition at line 120 of file itkLandweberDeconvolutionImageFilter.h.
typedef TKernelImage itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::KernelImageType |
Definition at line 116 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 172 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 167 of file itkLandweberDeconvolutionImageFilter.h.
typedef TOutputImage itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::OutputImageType |
Definition at line 117 of file itkLandweberDeconvolutionImageFilter.h.
typedef SmartPointer< Self > itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Pointer |
Definition at line 111 of file itkLandweberDeconvolutionImageFilter.h.
typedef LandweberDeconvolutionImageFilter itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Self |
Standard typedefs.
Definition at line 106 of file itkLandweberDeconvolutionImageFilter.h.
typedef IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > itk::LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >::Superclass |
Definition at line 110 of file itkLandweberDeconvolutionImageFilter.h.
|
protected |
|
protectedvirtual |
|
private |
|
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, TKernelImage, TOutputImage, TInternalPrecision >.
Reimplemented in itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
protectedvirtual |
Runs after iterating.
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
virtual |
Set/get relaxation factor.
|
virtual |
Runtime information support.
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
Reimplemented in itk::ProjectedLandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >, and itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
protectedvirtual |
Runs before iterating .
Reimplemented from itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
protectedvirtual |
Performs an iteration.
Implements itk::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
Reimplemented in itk::ProjectedIterativeDeconvolutionImageFilter< LandweberDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > >.
|
static |
Method for creation through the object factory.
|
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::IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >.
|
virtual |
Set/get relaxation factor.
|
private |
Definition at line 160 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 175 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 174 of file itkLandweberDeconvolutionImageFilter.h.
|
private |
Definition at line 162 of file itkLandweberDeconvolutionImageFilter.h.