ITK  5.0.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:
63  ITK_DISALLOW_COPY_AND_ASSIGN(RichardsonLucyDeconvolutionImageFilter);
64 
67  using Superclass = IterativeDeconvolutionImageFilter< TInputImage,
68  TKernelImage,
69  TOutputImage,
70  TInternalPrecision >;
73 
75  using InputImageType = TInputImage;
76  using KernelImageType = TKernelImage;
77  using OutputImageType = TOutputImage;
78 
80  using InternalImageType = typename Superclass::InternalImageType;
82  using InternalComplexType = typename Superclass::InternalComplexType;
83  using InternalComplexImageType = typename Superclass::InternalComplexImageType;
84  using InternalComplexImagePointerType = typename Superclass::InternalComplexImagePointerType;
85 
87  itkNewMacro(Self);
88 
92 
93 protected:
96 
97  void Initialize(ProgressAccumulator * progress,
98  float progressWeight,
99  float iterationProgressWeight) override;
100 
101  void Iteration(ProgressAccumulator * progress,
102  float iterationProgressWeight) override;
103 
104  void Finish(ProgressAccumulator *progress, float progressWeight) override;
105 
106  using FFTFilterType = typename Superclass::FFTFilterType;
107  using IFFTFilterType = typename Superclass::IFFTFilterType;
108 
109  void PrintSelf(std::ostream & os, Indent indent) const override;
110 
111 private:
120 
122 
131 };
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkRichardsonLucyDeconvolutionImageFilter.hxx"
136 #endif
137 
138 #endif
typename Superclass::InternalImagePointerType InternalImagePointerType
typename InternalImageType::Pointer InternalImagePointerType
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.
typename InternalComplexImageType::Pointer InternalComplexImagePointerType
std::complex< TInternalPrecision > InternalComplexType
TOutputImage OutputImageType
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