SimpleITK  
sitkLandweberDeconvolutionImageFilter.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* 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 sitkLandweberDeconvolutionImageFilter_h
19#define sitkLandweberDeconvolutionImageFilter_h
20
21/*
22 * WARNING: DO NOT EDIT THIS FILE!
23 * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24 * Please look at sitkImageFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
74public:
76
79
83
86
87
88
89
93 void
94 SetAlpha(double Alpha )
95 { this->m_Alpha = Alpha; }
96
99 double
100 GetAlpha() const { return this->m_Alpha; }
101
102
106 void
107 SetNumberOfIterations(int NumberOfIterations )
108 { this->m_NumberOfIterations = NumberOfIterations; }
109
112 int
114
115
119 void
122
124 void
125 NormalizeOn() { return this->SetNormalize(true); }
126 void
127 NormalizeOff() { return this->SetNormalize(false); }
130 bool
131 GetNormalize() const { return this->m_Normalize; }
132
133 typedef enum { ZERO_PAD, ZERO_FLUX_NEUMANN_PAD, PERIODIC_PAD } BoundaryConditionType;
134
137 void
139 { this->m_BoundaryCondition = BoundaryCondition; }
140
142 BoundaryConditionType
144
145 typedef enum { SAME, VALID } OutputRegionModeType;
146
149 void
151 { this->m_OutputRegionMode = OutputRegionMode; }
152
154 OutputRegionModeType
155 GetOutputRegionMode() const { return this->m_OutputRegionMode; }
156
157
159 std::string GetName() const { return std::string("LandweberDeconvolutionImageFilter"); }
160
162 std::string ToString() const;
163
164
166 Image Execute(const Image &image1, const Image &image2);
167
168
169private:
171 using MemberFunctionType = Image (Self::*)(const Image &image1, const Image &image2);
172 template <class TImageType> Image ExecuteInternal(const Image &image1, const Image &image2);
175
176
177 double m_Alpha{ 0.1 };
178
180
181 bool m_Normalize{ false };
182
184
186
187
188
189
190
191
192
193};
194
195
206);
207
209
210}
211#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image ExecuteInternal(const Image &image1, const Image &image2)
Image Execute(const Image &image1, const Image &image2)
void SetOutputRegionMode(OutputRegionModeType OutputRegionMode)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
void SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
A class used to instantiate and generate function object to templated member functions.
Image Normalize(const Image &image1)
Normalize an image by setting its mean to zero and variance to one.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
Image LandweberDeconvolution(const Image &image1, const Image &image2, double alpha=0.1, int numberOfIterations=1, bool normalize=false, LandweberDeconvolutionImageFilter::BoundaryConditionType boundaryCondition=itk::simple::LandweberDeconvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD, LandweberDeconvolutionImageFilter::OutputRegionModeType outputRegionMode=itk::simple::LandweberDeconvolutionImageFilter::SAME)
Deconvolve an image using the Landweber deconvolution algorithm.
#define SITKBasicFilters_EXPORT