ITK  6.0.0
Insight Toolkit
itkParametricBlindLeastSquaresDeconvolutionImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkParametricBlindLeastSquaresDeconvolutionImageFilter_h
19#define itkParametricBlindLeastSquaresDeconvolutionImageFilter_h
20
22
25
26namespace itk
27{
58template <typename TInputImage, typename TKernelSource, typename TOutputImage = TInputImage>
60 : public IterativeDeconvolutionImageFilter<TInputImage, typename TKernelSource::OutputImageType, TOutputImage>
61{
62public:
64
67 using Superclass =
71
73 using InputImageType = TInputImage;
74 using OutputImageType = TOutputImage;
75
77 using typename Superclass::InternalImageType;
78 using typename Superclass::InternalImagePointerType;
79 using typename Superclass::InternalComplexType;
80 using typename Superclass::InternalComplexImageType;
81 using typename Superclass::InternalComplexImagePointerType;
82
84 using KernelSourceType = TKernelSource;
86
88 itkNewMacro(Self);
89
92
94 void
96 itkGetModifiableObjectMacro(KernelSource, KernelSourceType);
101 itkSetMacro(Alpha, double);
102 itkGetMacro(Alpha, double);
107 itkSetMacro(Beta, double);
108 itkGetMacro(Beta, double);
111protected:
114
115 void
116 Initialize(ProgressAccumulator * progress, float progressWeight, float iterationProgressWeight) override;
117
118 void
119 Iteration(ProgressAccumulator * progress, float iterationProgressWeight) override;
120
121 void
122 Finish(ProgressAccumulator * progress, float progressWeight) override;
123
124 void
125 PrintSelf(std::ostream & os, Indent indent) const override;
126
127private:
128 KernelSourcePointer m_KernelSource{};
129
133 double m_Alpha{};
134 double m_Beta{};
135
138 InternalComplexImagePointerType m_TransformedCurrentEstimate{};
139
146 typename DifferenceFilterType::Pointer m_DifferenceFilter{};
147
152 typename ImageUpdateFilterType::Pointer m_ImageUpdateFilter{};
153};
154
155} // end namespace itk
156
157#ifndef ITK_MANUAL_INSTANTIATION
158# include "itkParametricBlindLeastSquaresDeconvolutionImageFilter.hxx"
159#endif
160
161
162#endif
Templated n-dimensional image class.
Definition: itkImage.h:89
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Abstract base class for filters that implement iterative deconvolution algorithms.
Light weight base class for most itk classes.
Least-squares blind deconvolution filter that also estimates the parameters of a user-supplied parame...
void Initialize(ProgressAccumulator *progress, float progressWeight, float iterationProgressWeight) override
void Finish(ProgressAccumulator *progress, float progressWeight) override
void SetKernelSource(KernelSourceType *kernelSource)
void Iteration(ProgressAccumulator *progress, float iterationProgressWeight) override
void PrintSelf(std::ostream &os, Indent indent) const override
Facilitates progress reporting for filters that wrap around multiple other filters.
Implements pixel-wise generic operation of three images or images with constants.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....