ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkConjugateGradientImageFilter.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 rtkConjugateGradientImageFilter_h
20#define rtkConjugateGradientImageFilter_h
21
24#include <itkTimeProbe.h>
25
27
32
33namespace rtk
34{
35
44
45template <typename OutputImageType>
46class ITK_TEMPLATE_EXPORT ConjugateGradientImageFilter
47 : public itk::InPlaceImageFilter<OutputImageType, OutputImageType>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(ConjugateGradientImageFilter);
51
57 using OutputImagePointer = typename OutputImageType::Pointer;
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(ConjugateGradientImageFilter);
64
66 itkGetMacro(NumberOfIterations, int);
67 itkSetMacro(NumberOfIterations, int);
68
69 void
71
73 void
74 SetX(const OutputImageType * OutputImage);
75
77 void
78 SetB(const OutputImageType * OutputImage);
79
80protected:
82 ~ConjugateGradientImageFilter() override = default;
83
88
90 void
91 GenerateData() override;
92
94 void
96 void
98
100
102};
103} // namespace rtk
104
105
106#ifndef ITK_MANUAL_INSTANTIATION
107# include "rtkConjugateGradientImageFilter.hxx"
108#endif
109
110#endif
TOutputImage OutputImageType
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
void GenerateOutputInformation() override
itk::InPlaceImageFilter< TOutputImage, TOutputImage > Superclass
void SetA(ConjugateGradientOperatorType *_arg)
~ConjugateGradientImageFilter() override=default
ConjugateGradientOperator< TOutputImage > ConjugateGradientOperatorType
void SetB(const OutputImageType *OutputImage)
void SetX(const OutputImageType *OutputImage)
void GenerateInputRequestedRegion() override
#define itkSetMacro(name, type)