RTK  1.4.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  * 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 
44  itkStaticConstMacro(InputImageDimension, unsigned int,
45  TInputImage::ImageDimension);
46 
48  typedef TInputImage InputImageType;
49 
55 
57  itkNewMacro(Self)
58 
59 
61 
63  typedef typename InputImageType::PixelType InputPixelType;
64  typedef typename InputImageType::RegionType InputImageRegionType;
65  typedef typename InputImageType::SizeType InputSizeType;
66 
69  typedef typename GradientFilterType::OutputImageType GradientImageType;
71 
72  void SetDimensionsProcessed(bool* arg);
73 
74 protected:
75  DivergenceOfGradientConjugateGradientOperator();
76  ~DivergenceOfGradientConjugateGradientOperator() {}
77 
78  void GenerateData() ITK_OVERRIDE;
79 
80  void GenerateOutputInformation() ITK_OVERRIDE;
81 
85 
86  bool m_DimensionsProcessed[TInputImage::ImageDimension];
87 
88 private:
89  DivergenceOfGradientConjugateGradientOperator(const Self&); //purposely not implemented
90  void operator=(const Self&); //purposely not implemented
91 };
92 
93 } // end namespace itk
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 #include "rtkDivergenceOfGradientConjugateGradientOperator.hxx"
97 #endif
98 
99 #endif //__rtkDivergenceOfGradientConjugateGradientOperator__
typename Superclass::PixelType PixelType
typename FixedImageType::SizeType SizeType
itk::ImageToImageFilter< InputImageType, InputImageType > Superclass
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...