SimpleITK  
sitkRichardsonLucyDeconvolutionImageFilter.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 sitkRichardsonLucyDeconvolutionImageFilter_h
19#define sitkRichardsonLucyDeconvolutionImageFilter_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
68public:
70
73
77
80
81
82
83
87 void
88 SetNumberOfIterations(int NumberOfIterations )
89 { this->m_NumberOfIterations = NumberOfIterations; }
90
93 int
95
96
100 void
103
105 void
106 NormalizeOn() { return this->SetNormalize(true); }
107 void
108 NormalizeOff() { return this->SetNormalize(false); }
111 bool
112 GetNormalize() const { return this->m_Normalize; }
113
114 typedef enum { ZERO_PAD, ZERO_FLUX_NEUMANN_PAD, PERIODIC_PAD } BoundaryConditionType;
115
118 void
120 { this->m_BoundaryCondition = BoundaryCondition; }
121
123 BoundaryConditionType
125
126 typedef enum { SAME, VALID } OutputRegionModeType;
127
130 void
132 { this->m_OutputRegionMode = OutputRegionMode; }
133
135 OutputRegionModeType
136 GetOutputRegionMode() const { return this->m_OutputRegionMode; }
137
138
140 std::string GetName() const { return std::string("RichardsonLucyDeconvolutionImageFilter"); }
141
143 std::string ToString() const;
144
145
147 Image Execute(const Image &image1, const Image &image2);
148
149
150private:
152 using MemberFunctionType = Image (Self::*)(const Image &image1, const Image &image2);
153 template <class TImageType> Image ExecuteInternal(const Image &image1, const Image &image2);
156
157
159
160 bool m_Normalize{ false };
161
163
165
166
167
168
169
170
171
172};
173
174
185);
186
188
189}
190#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image(Self::*)(const Image &image1, const Image &image2) MemberFunctionType
Image Execute(const Image &image1, const Image &image2)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image ExecuteInternal(const Image &image1, const Image &image2)
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.
Image RichardsonLucyDeconvolution(const Image &image1, const Image &image2, int numberOfIterations=1, bool normalize=false, RichardsonLucyDeconvolutionImageFilter::BoundaryConditionType boundaryCondition=itk::simple::RichardsonLucyDeconvolutionImageFilter::ZERO_FLUX_NEUMANN_PAD, RichardsonLucyDeconvolutionImageFilter::OutputRegionModeType outputRegionMode=itk::simple::RichardsonLucyDeconvolutionImageFilter::SAME)
Deconvolve an image using the Richardson-Lucy deconvolution algorithm.
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
#define SITKBasicFilters_EXPORT