RTK  2.6.0
Reconstruction Toolkit
rtkDePierroRegularizationImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
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 
19 #ifndef rtkDePierroRegularizationImageFilter_h
20 #define rtkDePierroRegularizationImageFilter_h
21 
22 #include <itkMultiplyImageFilter.h>
23 #include <itkSubtractImageFilter.h>
24 #include <itkDivideImageFilter.h>
25 #include <itkImageKernelOperator.h>
28 #include "rtkConstantImageSource.h"
29 
30 namespace rtk
31 {
32 
74 template <class TInputImage, class TOutputImage = TInputImage>
75 class ITK_TEMPLATE_EXPORT DePierroRegularizationImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
76 {
77 public:
78  ITK_DISALLOW_COPY_AND_MOVE(DePierroRegularizationImageFilter);
79 
85 
87  using InputImageType = TInputImage;
88  using InputImagePointerType = typename TInputImage::Pointer;
89  using OutputImageType = TOutputImage;
90  using InputPixelType = typename TInputImage::PixelType;
91 
93  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
94 
107 
110 
112  itkNewMacro(Self);
113 
115 #ifdef itkOverrideGetNameOfClassMacro
116  itkOverrideGetNameOfClassMacro(DePierroRegularizationImageFilter);
117 #else
119 #endif
120 
121 
123  itkGetMacro(Beta, double);
124  itkSetMacro(Beta, double);
126 
127 protected:
129  ~DePierroRegularizationImageFilter() override = default;
130 
131  void
132  GenerateInputRequestedRegion() override;
133 
134  void
135  GenerateOutputInformation() override;
136 
137  void
138  GenerateData() override;
139 
149 
150 private:
151  double m_Beta{ 0.01 };
152 
153 }; // end of class
154 
155 } // end namespace rtk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 # include "rtkDePierroRegularizationImageFilter.hxx"
159 #endif
160 
161 #endif
Generate an n-dimensional image with constant pixel values.
TInputImage InputImageType
#define itkSetMacro(name, type)
typename ConstantVolumeSourceType::Pointer ConstantVolumeSourcePointerType
typename MultiplyImageFilterType::Pointer MultpiplyImageFilterPointerType
TOutputImage OutputImageType
Implements a regularization for MLEM/OSEM reconstruction.
typename CustomBinaryFilterType::Pointer CustomBinaryFilterPointerType
typename SubtractImageFilterType::Pointer SubtractImageFilterPointerType