ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkRichardsonLucyDeconvolutionImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkRichardsonLucyDeconvolutionImageFilter_h
19 #define itkRichardsonLucyDeconvolutionImageFilter_h
20 
22 
25 #include "itkMultiplyImageFilter.h"
26 
27 namespace itk
28 {
58 template< typename TInputImage, typename TKernelImage=TInputImage, typename TOutputImage=TInputImage, typename TInternalPrecision=double >
59 class ITK_TEMPLATE_EXPORT RichardsonLucyDeconvolutionImageFilter :
60  public IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision >
61 {
62 public:
65  typedef IterativeDeconvolutionImageFilter< TInputImage,
66  TKernelImage,
67  TOutputImage,
68  TInternalPrecision > Superclass;
71 
73  typedef TInputImage InputImageType;
74  typedef TKernelImage KernelImageType;
75  typedef TOutputImage OutputImageType;
76 
78  typedef typename Superclass::InternalImageType InternalImageType;
79  typedef typename Superclass::InternalImagePointerType InternalImagePointerType;
80  typedef typename Superclass::InternalComplexType InternalComplexType;
81  typedef typename Superclass::InternalComplexImageType InternalComplexImageType;
82  typedef typename Superclass::InternalComplexImagePointerType InternalComplexImagePointerType;
83 
85  itkNewMacro(Self);
86 
90 
91 protected:
93  virtual ~RichardsonLucyDeconvolutionImageFilter() ITK_OVERRIDE;
94 
95  virtual void Initialize(ProgressAccumulator * progress,
96  float progressWeight,
97  float iterationProgressWeight) ITK_OVERRIDE;
98 
99  virtual void Iteration(ProgressAccumulator * progress,
100  float iterationProgressWeight) ITK_OVERRIDE;
101 
102  virtual void Finish(ProgressAccumulator *progress, float progressWeight) ITK_OVERRIDE;
103 
106 
107  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
108 
109 private:
110  ITK_DISALLOW_COPY_AND_ASSIGN(RichardsonLucyDeconvolutionImageFilter);
111 
118  ConjugateAdaptorType,
119  InternalComplexImageType > ComplexConjugateMultiplyType;
120 
122 
123  typename ComplexMultiplyType::Pointer m_ComplexMultiplyFilter1;
124  typename IFFTFilterType::Pointer m_IFFTFilter1;
125  typename DivideFilterType::Pointer m_DivideFilter;
126  typename FFTFilterType::Pointer m_FFTFilter;
127  typename ConjugateAdaptorType::Pointer m_ConjugateAdaptor;
128  typename ComplexConjugateMultiplyType::Pointer m_ComplexMultiplyFilter2;
129  typename IFFTFilterType::Pointer m_IFFTFilter2;
130  typename MultiplyFilterType::Pointer m_MultiplyFilter;
131 };
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkRichardsonLucyDeconvolutionImageFilter.hxx"
136 #endif
137 
138 #endif
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Presents each pixel of a complex image as its complex conjugate.
Base class for all process objects that output image data.
Deconvolve an image using the Richardson-Lucy deconvolution algorithm.
Base class for specialized complex-to-real inverse Fast Fourier Transform.
IterativeDeconvolutionImageFilter< TInputImage, TKernelImage, TOutputImage, TInternalPrecision > Superclass
Superclass::InternalComplexImagePointerType InternalComplexImagePointerType
Facilitates progress reporting for filters that wrap around multiple other filters.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Abstract base class for filters that implement iterative deconvolution algorithms.
Base class for specialized real-to-complex forward Fast Fourier Transform.
Pixel-wise multiplication of two images.
Templated n-dimensional image class.
Definition: itkImage.h:75