RTK  2.6.0
Reconstruction Toolkit
rtkADMMWaveletsConjugateGradientOperator.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 rtkADMMWaveletsConjugateGradientOperator_h
20 #define rtkADMMWaveletsConjugateGradientOperator_h
21 
22 #include <itkMultiplyImageFilter.h>
23 #include <itkAddImageFilter.h>
24 
29 
31 
32 namespace rtk
33 {
34 
97 template <typename TOutputImage>
98 class ITK_TEMPLATE_EXPORT ADMMWaveletsConjugateGradientOperator : public ConjugateGradientOperator<TOutputImage>
99 {
100 public:
101  ITK_DISALLOW_COPY_AND_MOVE(ADMMWaveletsConjugateGradientOperator);
102 
107 
109  itkNewMacro(Self);
110 
112  itkOverrideGetNameOfClassMacro(ADMMWaveletsConjugateGradientOperator);
113 
115  using BackProjectionFilterPointer = typename BackProjectionFilterType::Pointer;
116 
118  using ForwardProjectionFilterPointer = typename ForwardProjectionFilterType::Pointer;
119 
121  using AddFilterType = itk::AddImageFilter<TOutputImage>;
122 
124 
126  void
127  SetBackProjectionFilter(BackProjectionFilterType * _arg);
128 
130  void
131  SetForwardProjectionFilter(ForwardProjectionFilterType * _arg);
132 
134  void
135  SetGeometry(ThreeDCircularProjectionGeometry * _arg);
136 
138  itkSetMacro(Beta, float);
139 
141  itkSetMacro(DisableDisplacedDetectorFilter, bool);
142  itkGetMacro(DisableDisplacedDetectorFilter, bool);
144 
145 protected:
147  ~ADMMWaveletsConjugateGradientOperator() override = default;
148 
150  void
151  GenerateData() override;
152 
156 
157  typename AddFilterType::Pointer m_AddFilter;
162 
163  float m_Beta;
165 
169  void
170  VerifyInputInformation() const override
171  {}
172 
175  void
176  GenerateInputRequestedRegion() override;
177  void
178  GenerateOutputInformation() override;
179 };
180 } // namespace rtk
182 
183 
184 #ifndef ITK_MANUAL_INSTANTIATION
185 # include "rtkADMMWaveletsConjugateGradientOperator.hxx"
186 #endif
187 
188 #endif
Weigting for displaced detectors.
typename ForwardProjectionFilterType::Pointer ForwardProjectionFilterPointer
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)
Implements the operator A used in the conjugate gradient step of ADMM reconstruction with wavelets re...
typename BackProjectionFilterType::Pointer BackProjectionFilterPointer