RTK  2.6.0
Reconstruction Toolkit
rtkDivergenceOfGradientConjugateGradientOperator.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 rtkDivergenceOfGradientConjugateGradientOperator_h
20 #define rtkDivergenceOfGradientConjugateGradientOperator_h
21 
23 
26 
27 namespace rtk
28 {
37 template <class TInputImage>
38 class ITK_TEMPLATE_EXPORT DivergenceOfGradientConjugateGradientOperator : public ConjugateGradientOperator<TInputImage>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_MOVE(DivergenceOfGradientConjugateGradientOperator);
42 
44  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
45 
47  using InputImageType = TInputImage;
48 
54 
56  itkNewMacro(Self);
57 
59 #ifdef itkOverrideGetNameOfClassMacro
60  itkOverrideGetNameOfClassMacro(DivergenceOfGradientConjugateGradientOperator);
61 #else
63 #endif
64 
65 
67  using InputPixelType = typename InputImageType::PixelType;
68  using InputImageRegionType = typename InputImageType::RegionType;
69  using InputSizeType = typename InputImageType::SizeType;
70 
75 
76  void
77  SetDimensionsProcessed(bool * arg);
78 
79 protected:
82 
83  void
84  GenerateData() override;
85 
86  void
87  GenerateOutputInformation() override;
88 
92 
93  bool m_DimensionsProcessed[TInputImage::ImageDimension];
94 };
95 
96 } // namespace rtk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "rtkDivergenceOfGradientConjugateGradientOperator.hxx"
100 #endif
101 
102 #endif //__rtkDivergenceOfGradientConjugateGradientOperator__
Computes the gradient of an image using forward difference.
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
Computes the divergence of the gradient of an image. To be used with the ConjugateGradientImageFilter...