ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkConjugateGradientGetP_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 rtkConjugateGradientGetP_kPlusOneImageFilter_h
20#define rtkConjugateGradientGetP_kPlusOneImageFilter_h
21
22#include <itkAddImageFilter.h>
25
26namespace rtk
27{
34template <typename TInputImage>
36 : public itk::ImageToImageFilter<TInputImage, TInputImage>
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(ConjugateGradientGetP_kPlusOneImageFilter);
40
45 using OutputImageRegionType = typename TInputImage::RegionType;
47
49 itkNewMacro(Self);
50
52 itkOverrideGetNameOfClassMacro(ConjugateGradientGetP_kPlusOneImageFilter);
53
55 void
56 SetR_kPlusOne(const TInputImage * R_kPlusOne);
57 void
58 SetRk(const TInputImage * Rk);
59 void
60 SetPk(const TInputImage * Pk);
61
62 itkSetMacro(SquaredNormR_k, double);
63 itkSetMacro(SquaredNormR_kPlusOne, double);
64
68
69protected:
72
73 typename TInputImage::Pointer
75 typename TInputImage::Pointer
77 typename TInputImage::Pointer
79
81 void
82 GenerateData() override;
83
84 void
86
87private:
90 double m_Betak;
91
95};
96} // namespace rtk
97
98
99#ifndef ITK_MANUAL_INSTANTIATION
100# include "rtkConjugateGradientGetP_kPlusOneImageFilter.hxx"
101#endif
102
103#endif
Pixel-wise addition of two images.
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Pixel-wise multiplication of two images.
Implements transparent reference counting.
void SetR_kPlusOne(const TInputImage *R_kPlusOne)
~ConjugateGradientGetP_kPlusOneImageFilter() override=default
itk::MultiplyImageFilter< TInputImage, BetaImage, TInputImage > MultiplyFilterType
itk::Image< typename TInputImage::InternalPixelType, TInputImage::ImageDimension > BetaImage
itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
#define itkSetMacro(name, type)