ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkADMMTotalVariationConjugateGradientOperator.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 rtkADMMTotalVariationConjugateGradientOperator_h
20#define rtkADMMTotalVariationConjugateGradientOperator_h
21
24
33
34namespace rtk
35{
36
102
103template <typename TOutputImage>
104class ITK_TEMPLATE_EXPORT ADMMTotalVariationConjugateGradientOperator : public ConjugateGradientOperator<TOutputImage>
105{
106public:
107 ITK_DISALLOW_COPY_AND_MOVE(ADMMTotalVariationConjugateGradientOperator);
108
113
115 itkNewMacro(Self);
116
118 itkOverrideGetNameOfClassMacro(ADMMTotalVariationConjugateGradientOperator);
119
122
125
128
131 typename TOutputImage::template RebindImageType<VectorPixelType, TOutputImage::ImageDimension>;
132
134 typename TOutputImage::ValueType,
135 typename TOutputImage::ValueType,
140
142 void
144
146 void
148
150 itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
151
153 itkSetMacro(Beta, float);
154
156 void
157 SetGatingWeights(std::vector<float> weights);
158
160 itkSetMacro(DisableDisplacedDetectorFilter, bool);
161 itkGetMacro(DisableDisplacedDetectorFilter, bool);
162
163protected:
166
168 void
169 VerifyPreconditions() const override;
170
172 void
173 GenerateData() override;
174
178
187
189 float m_Beta;
191
195 std::vector<float> m_GatingWeights;
196
200 void
201 VerifyInputInformation() const override
202 {}
203
206 void
208 void
210};
211} // namespace rtk
212
213
214#ifndef ITK_MANUAL_INSTANTIATION
215# include "rtkADMMTotalVariationConjugateGradientOperator.hxx"
216#endif
217
218#endif
A templated class holding a n-Dimensional covariant vector.
Pixel-wise multiplication of two images.
Implements transparent reference counting.
Pixel-wise subtraction of two images.
rtk::DisplacedDetectorImageFilter< TOutputImage > DisplacedDetectorFilterType
void SetGatingWeights(std::vector< float > weights)
void SetBackProjectionFilter(BackProjectionFilterType *_arg)
~ADMMTotalVariationConjugateGradientOperator() override=default
rtk::ForwardProjectionImageFilter< TOutputImage, TOutputImage > ForwardProjectionFilterType
itk::CovariantVector< typename TOutputImage::ValueType, TOutputImage::ImageDimension > VectorPixelType
void SetForwardProjectionFilter(ForwardProjectionFilterType *_arg)
typename TOutputImage::template RebindImageType< VectorPixelType, TOutputImage::ImageDimension > GradientImageType
rtk::BackwardDifferenceDivergenceImageFilter< GradientImageType, TOutputImage > DivergenceFilterType
ForwardDifferenceGradientImageFilter< TOutputImage, typename TOutputImage::ValueType, typename TOutputImage::ValueType, GradientImageType > GradientFilterType
rtk::BackProjectionImageFilter< TOutputImage, TOutputImage > BackProjectionFilterType
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
Computes the gradient of an image using forward difference.
Base class for forward projection, i.e. accumulation along x-ray lines.
Multiplies each (n-1) dimension image by the corresponding element in a vector.
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)