SimpleITK  2.0.0
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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
66  public:
68 
71 
75 
78 \
79 
83  SITK_RETURN_SELF_TYPE_HEADER SetAlpha ( double Alpha ) { this->m_Alpha = Alpha; return *this; }
84 
88  double GetAlpha() const { return this->m_Alpha; }\
89 
93  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfIterations ( int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations; return *this; }
94 
98  int GetNumberOfIterations() const { return this->m_NumberOfIterations; }\
99 
104  SITK_RETURN_SELF_TYPE_HEADER SetNormalize ( bool Normalize ) { this->m_Normalize = Normalize; return *this; }
105 
107  SITK_RETURN_SELF_TYPE_HEADER NormalizeOn() { return this->SetNormalize(true); }
108  SITK_RETURN_SELF_TYPE_HEADER NormalizeOff() { return this->SetNormalize(false); }
109 
112  bool GetNormalize() const { return this->m_Normalize; }
113 
114  typedef enum {ZERO_PAD,ZERO_FLUX_NEUMANN_PAD,PERIODIC_PAD} BoundaryConditionType;\
115 
118  SITK_RETURN_SELF_TYPE_HEADER SetBoundaryCondition ( BoundaryConditionType BoundaryCondition ) { this->m_BoundaryCondition = BoundaryCondition; return *this; }
119 
122  BoundaryConditionType GetBoundaryCondition() const { return this->m_BoundaryCondition; }
123 
124  typedef enum {SAME,VALID} OutputRegionModeType;\
125 
128  SITK_RETURN_SELF_TYPE_HEADER SetOutputRegionMode ( OutputRegionModeType OutputRegionMode ) { this->m_OutputRegionMode = OutputRegionMode; return *this; }
129 
132  OutputRegionModeType GetOutputRegionMode() const { return this->m_OutputRegionMode; }
133 
135  std::string GetName() const { return std::string ("LandweberDeconvolutionImageFilter"); }
136 
138  std::string ToString() const;
139 
140 
143  Image Execute ( const Image& image1, const Image& image2 );
144 
145  private:
146 
149  using MemberFunctionType = Image (Self::*)( const Image& image1, const Image& image2 );
150  template <class TImageType> Image ExecuteInternal ( const Image& image1, const Image& image2 );
151 
152 
154 
155  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
156 
157 
158  double m_Alpha{0.1};
159 
160  int m_NumberOfIterations{1};
161 
162  /* */
163  bool m_Normalize{false};
164 
166 
168 
169 
170  };
171 
183 
185  }
186 }
187 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::simple::LandweberDeconvolutionImageFilter::GetOutputRegionMode
OutputRegionModeType GetOutputRegionMode() const
Definition: sitkLandweberDeconvolutionImageFilter.h:132
itk::simple::LandweberDeconvolutionImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Definition: sitkLandweberDeconvolutionImageFilter.h:149
itk::simple::Normalize
Image Normalize(const Image &image1)
Normalize an image by setting its mean to zero and variance to one.
itk::simple::LandweberDeconvolutionImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkLandweberDeconvolutionImageFilter.h:77
itk::simple::LandweberDeconvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD
@ ZERO_FLUX_NEUMANN_PAD
Definition: sitkLandweberDeconvolutionImageFilter.h:114
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::LandweberDeconvolutionImageFilter::GetNumberOfIterations
int GetNumberOfIterations() const
Definition: sitkLandweberDeconvolutionImageFilter.h:98
itk::simple::LandweberDeconvolutionImageFilter::GetAlpha
double GetAlpha() const
Definition: sitkLandweberDeconvolutionImageFilter.h:88
itk::simple::LandweberDeconvolutionImageFilter::GetNormalize
bool GetNormalize() const
Definition: sitkLandweberDeconvolutionImageFilter.h:112
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::LandweberDeconvolutionImageFilter::OutputRegionModeType
OutputRegionModeType
Definition: sitkLandweberDeconvolutionImageFilter.h:124
itk::ImageBoundaryCondition
itk::simple::LandweberDeconvolutionImageFilter::BoundaryConditionType
BoundaryConditionType
Definition: sitkLandweberDeconvolutionImageFilter.h:114
itk::simple::LandweberDeconvolutionImageFilter::SetOutputRegionMode
Self & SetOutputRegionMode(OutputRegionModeType OutputRegionMode)
Definition: sitkLandweberDeconvolutionImageFilter.h:128
itk::simple::LandweberDeconvolutionImageFilter::GetName
std::string GetName() const
Definition: sitkLandweberDeconvolutionImageFilter.h:135
itk::simple::LandweberDeconvolutionImageFilter::NormalizeOn
Self & NormalizeOn()
Definition: sitkLandweberDeconvolutionImageFilter.h:107
itk::simple::LandweberDeconvolutionImageFilter::NormalizeOff
Self & NormalizeOff()
Definition: sitkLandweberDeconvolutionImageFilter.h:108
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk
itk::simple::LandweberDeconvolutionImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkLandweberDeconvolutionImageFilter.h:155
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::LandweberDeconvolutionImageFilter::ZERO_PAD
@ ZERO_PAD
Definition: sitkLandweberDeconvolutionImageFilter.h:114
itk::simple::LandweberDeconvolutionImageFilter::SetNormalize
Self & SetNormalize(bool Normalize)
Definition: sitkLandweberDeconvolutionImageFilter.h:104
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::LandweberDeconvolutionImageFilter::GetBoundaryCondition
BoundaryConditionType GetBoundaryCondition() const
Definition: sitkLandweberDeconvolutionImageFilter.h:122
itk::simple::LandweberDeconvolution
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.
itk::simple::LandweberDeconvolutionImageFilter::SetBoundaryCondition
Self & SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
Definition: sitkLandweberDeconvolutionImageFilter.h:118
itk::simple::LandweberDeconvolutionImageFilter
Deconvolve an image using the Landweber deconvolution algorithm.
Definition: sitkLandweberDeconvolutionImageFilter.h:65
itk::simple::LandweberDeconvolutionImageFilter::SetNumberOfIterations
Self & SetNumberOfIterations(int NumberOfIterations)
Definition: sitkLandweberDeconvolutionImageFilter.h:93
itk::simple::LandweberDeconvolutionImageFilter::SetAlpha
Self & SetAlpha(double Alpha)
Definition: sitkLandweberDeconvolutionImageFilter.h:83
itk::simple::LandweberDeconvolutionImageFilter::SAME
@ SAME
Definition: sitkLandweberDeconvolutionImageFilter.h:124