RTK  2.0.1
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  * 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 rtkDivergenceOfGradientConjugateGradientOperator_h
20 #define rtkDivergenceOfGradientConjugateGradientOperator_h
21 
23 
26 
27 namespace rtk
28 {
37 template <class TInputImage>
39  public ConjugateGradientOperator< TInputImage >
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(DivergenceOfGradientConjugateGradientOperator);
43 
45  itkStaticConstMacro(InputImageDimension, unsigned int,
46  TInputImage::ImageDimension);
47 
49  using InputImageType = TInputImage;
50 
56 
58  itkNewMacro(Self)
59 
60 
62 
64  using InputPixelType = typename InputImageType::PixelType;
67 
70  using GradientImageType = typename GradientFilterType::OutputImageType;
72 
73  void SetDimensionsProcessed(bool* arg);
74 
75 protected:
76  DivergenceOfGradientConjugateGradientOperator();
77  ~DivergenceOfGradientConjugateGradientOperator() override = default;
78 
79  void GenerateData() override;
80 
81  void GenerateOutputInformation() override;
82 
86 
87  bool m_DimensionsProcessed[TInputImage::ImageDimension];
88 
89 };
90 
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "rtkDivergenceOfGradientConjugateGradientOperator.hxx"
95 #endif
96 
97 #endif //__rtkDivergenceOfGradientConjugateGradientOperator__
Computes the gradient of an image using forward difference.
ImageBaseType::SizeType SizeType
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...
ImageBaseType::RegionType RegionType