RTK  2.1.0
Reconstruction Toolkit
rtkConjugateGradientGetX_kPlusOneImageFilter.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  * 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 
19 #ifndef rtkConjugateGradientGetX_kPlusOneImageFilter_h
20 #define rtkConjugateGradientGetX_kPlusOneImageFilter_h
21 
22 #include <itkImageToImageFilter.h>
23 #include <itkAddImageFilter.h>
24 #include <itkMultiplyImageFilter.h>
25 
26 namespace rtk
27 {
34 template <typename TInputImage>
36 {
37 public:
38  ITK_DISALLOW_COPY_AND_ASSIGN(ConjugateGradientGetX_kPlusOneImageFilter);
39 
44  using OutputImageRegionType = typename TInputImage::RegionType;
46 
48  itkNewMacro(Self);
49 
52 
54  void
55  SetXk(const TInputImage * Xk);
56  void
57  SetPk(const TInputImage * Pk);
59 
60  itkGetMacro(Alphak, double);
61  itkSetMacro(Alphak, double);
62 
66 
67 protected:
69  ~ConjugateGradientGetX_kPlusOneImageFilter() override = default;
70 
71  typename TInputImage::Pointer
72  GetXk();
73  typename TInputImage::Pointer
74  GetPk();
75 
77  void
78  GenerateData() override;
79 
80  void
81  GenerateOutputInformation() override;
82 
83 private:
84  double m_Alphak;
85 
89 };
90 } // namespace rtk
91 
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 # include "rtkConjugateGradientGetX_kPlusOneImageFilter.hxx"
95 #endif
96 
97 #endif
~ConjugateGradientGetX_kPlusOneImageFilter() override=default
#define itkSetMacro(name, type)
typename OutputImageType::RegionType OutputImageRegionType