ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkConjugateGradientGetR_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 * 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 rtkConjugateGradientGetR_kPlusOneImageFilter_h
20#define rtkConjugateGradientGetR_kPlusOneImageFilter_h
21
23#include <itkVectorImage.h>
24
25#include "rtkConfiguration.h"
26#include "rtkMacro.h"
27
28namespace rtk
29{
36template <typename TInputImage>
38 : public itk::ImageToImageFilter<TInputImage, TInputImage>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(ConjugateGradientGetR_kPlusOneImageFilter);
42
47 using OutputImageRegionType = typename TInputImage::RegionType;
48
50 itkNewMacro(Self);
51
53 itkOverrideGetNameOfClassMacro(ConjugateGradientGetR_kPlusOneImageFilter);
54
56 void
57 SetRk(const TInputImage * Rk);
58 void
59 SetPk(const TInputImage * Pk);
60 void
61 SetAPk(const TInputImage * APk);
62
63 itkGetMacro(Alphak, double);
64 itkGetMacro(SquaredNormR_k, double);
65 itkGetMacro(SquaredNormR_kPlusOne, double);
66
67protected:
70
71 typename TInputImage::Pointer
73 typename TInputImage::Pointer
75 typename TInputImage::Pointer
77
78 void
79 GenerateData() override;
80
81private:
82 double m_Alphak{ 0. };
83 double m_SquaredNormR_k{ 0. };
85};
86
87} // namespace rtk
88
89
90#ifndef ITK_MANUAL_INSTANTIATION
91# include "rtkConjugateGradientGetR_kPlusOneImageFilter.hxx"
92#endif
93
94#endif
Base class for filters that take an image as input and produce an image as output.
Implements transparent reference counting.
itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
~ConjugateGradientGetR_kPlusOneImageFilter() override=default