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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk::simple {
33 
65  public:
67 
70 
74 
77 \
78 
82  SITK_RETURN_SELF_TYPE_HEADER SetAlpha ( double Alpha ) { this->m_Alpha = Alpha; return *this; }
83 
87  double GetAlpha() const { return this->m_Alpha; }\
88 
92  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfIterations ( int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations; return *this; }
93 
97  int GetNumberOfIterations() const { return this->m_NumberOfIterations; }\
98 
103  SITK_RETURN_SELF_TYPE_HEADER SetNormalize ( bool Normalize ) { this->m_Normalize = Normalize; return *this; }
104 
106  SITK_RETURN_SELF_TYPE_HEADER NormalizeOn() { return this->SetNormalize(true); }
107  SITK_RETURN_SELF_TYPE_HEADER NormalizeOff() { return this->SetNormalize(false); }
108 
111  bool GetNormalize() const { return this->m_Normalize; }
112 
113  typedef enum {ZERO_PAD,ZERO_FLUX_NEUMANN_PAD,PERIODIC_PAD} BoundaryConditionType;\
114 
117  SITK_RETURN_SELF_TYPE_HEADER SetBoundaryCondition ( BoundaryConditionType BoundaryCondition ) { this->m_BoundaryCondition = BoundaryCondition; return *this; }
118 
121  BoundaryConditionType GetBoundaryCondition() const { return this->m_BoundaryCondition; }
122 
123  typedef enum {SAME,VALID} OutputRegionModeType;\
124 
127  SITK_RETURN_SELF_TYPE_HEADER SetOutputRegionMode ( OutputRegionModeType OutputRegionMode ) { this->m_OutputRegionMode = OutputRegionMode; return *this; }
128 
131  OutputRegionModeType GetOutputRegionMode() const { return this->m_OutputRegionMode; }
132 
134  std::string GetName() const { return std::string ("LandweberDeconvolutionImageFilter"); }
135 
137  std::string ToString() const;
138 
139 
142  Image Execute ( const Image& image1, const Image& image2 );
143 
144  private:
145 
148  using MemberFunctionType = Image (Self::*)( const Image& image1, const Image& image2 );
149  template <class TImageType> Image ExecuteInternal ( const Image& image1, const Image& image2 );
150 
151 
153 
154  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
155 
156 
157  double m_Alpha{0.1};
158 
159  int m_NumberOfIterations{1};
160 
161  /* */
162  bool m_Normalize{false};
163 
165 
167 
168 
169  };
170 
182 
184 }
185 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::LandweberDeconvolutionImageFilter::GetOutputRegionMode
OutputRegionModeType GetOutputRegionMode() const
Definition: sitkLandweberDeconvolutionImageFilter.h:131
itk::simple::LandweberDeconvolutionImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Definition: sitkLandweberDeconvolutionImageFilter.h:148
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:76
itk::simple::LandweberDeconvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD
@ ZERO_FLUX_NEUMANN_PAD
Definition: sitkLandweberDeconvolutionImageFilter.h:113
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::LandweberDeconvolutionImageFilter::GetNumberOfIterations
int GetNumberOfIterations() const
Definition: sitkLandweberDeconvolutionImageFilter.h:97
itk::simple::LandweberDeconvolutionImageFilter::GetAlpha
double GetAlpha() const
Definition: sitkLandweberDeconvolutionImageFilter.h:87
itk::simple::BasicPixelIDTypeList
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
Definition: sitkPixelIDTypeLists.h:51
itk::simple::LandweberDeconvolutionImageFilter::GetNormalize
bool GetNormalize() const
Definition: sitkLandweberDeconvolutionImageFilter.h:111
sitkImageFilter.h
itk::simple::LandweberDeconvolutionImageFilter::OutputRegionModeType
OutputRegionModeType
Definition: sitkLandweberDeconvolutionImageFilter.h:123
ConvolutionImageFilterOutputRegion::VALID
@ VALID
itk::ImageBoundaryCondition
itk::simple::LandweberDeconvolutionImageFilter::BoundaryConditionType
BoundaryConditionType
Definition: sitkLandweberDeconvolutionImageFilter.h:113
itk::simple::LandweberDeconvolutionImageFilter::SetOutputRegionMode
Self & SetOutputRegionMode(OutputRegionModeType OutputRegionMode)
Definition: sitkLandweberDeconvolutionImageFilter.h:127
itk::simple::LandweberDeconvolutionImageFilter::GetName
std::string GetName() const
Definition: sitkLandweberDeconvolutionImageFilter.h:134
itk::simple::LandweberDeconvolutionImageFilter::NormalizeOn
Self & NormalizeOn()
Definition: sitkLandweberDeconvolutionImageFilter.h:106
itk::simple::LandweberDeconvolutionImageFilter::NormalizeOff
Self & NormalizeOff()
Definition: sitkLandweberDeconvolutionImageFilter.h:107
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::LandweberDeconvolutionImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkLandweberDeconvolutionImageFilter.h:154
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::LandweberDeconvolutionImageFilter::ZERO_PAD
@ ZERO_PAD
Definition: sitkLandweberDeconvolutionImageFilter.h:113
itk::simple::LandweberDeconvolutionImageFilter::SetNormalize
Self & SetNormalize(bool Normalize)
Definition: sitkLandweberDeconvolutionImageFilter.h:103
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple::LandweberDeconvolutionImageFilter::GetBoundaryCondition
BoundaryConditionType GetBoundaryCondition() const
Definition: sitkLandweberDeconvolutionImageFilter.h:121
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
Definition: sitkAdditionalProcedures.h:28
itk::simple::LandweberDeconvolutionImageFilter::SetBoundaryCondition
Self & SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
Definition: sitkLandweberDeconvolutionImageFilter.h:117
itk::simple::LandweberDeconvolutionImageFilter
Deconvolve an image using the Landweber deconvolution algorithm.
Definition: sitkLandweberDeconvolutionImageFilter.h:64
itk::simple::LandweberDeconvolutionImageFilter::SetNumberOfIterations
Self & SetNumberOfIterations(int NumberOfIterations)
Definition: sitkLandweberDeconvolutionImageFilter.h:92
ConvolutionImageFilterOutputRegion::SAME
@ SAME
itk::simple::LandweberDeconvolutionImageFilter::SetAlpha
Self & SetAlpha(double Alpha)
Definition: sitkLandweberDeconvolutionImageFilter.h:82
itk::simple::LandweberDeconvolutionImageFilter::SAME
@ SAME
Definition: sitkLandweberDeconvolutionImageFilter.h:123