ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkADMMTotalVariationConeBeamReconstructionFilter.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 rtkADMMTotalVariationConeBeamReconstructionFilter_h
20#define rtkADMMTotalVariationConeBeamReconstructionFilter_h
21
22#include <itkAddImageFilter.h>
26
34
35namespace rtk
36{
132
133
134template <typename TOutputImage>
136 : public rtk::IterativeConeBeamReconstructionFilter<TOutputImage, TOutputImage>
137{
138public:
139 ITK_DISALLOW_COPY_AND_MOVE(ADMMTotalVariationConeBeamReconstructionFilter);
140
145
148
150 itkNewMacro(Self);
151
153 itkOverrideGetNameOfClassMacro(ADMMTotalVariationConeBeamReconstructionFilter);
154
162 typename TOutputImage::template RebindImageType<VectorPixelType, TOutputImage::ImageDimension>;
164 typename TOutputImage::ValueType,
165 typename TOutputImage::ValueType,
177
179 itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
180
182 void
184
186 void
187 SetGatingWeights(std::vector<float> weights);
188
189 itkSetMacro(Alpha, float);
190 itkGetMacro(Alpha, float);
191
192 itkSetMacro(Beta, float);
193 itkGetMacro(Beta, float);
194
195 itkSetMacro(AL_iterations, float);
196 itkGetMacro(AL_iterations, float);
197
198 itkSetMacro(CG_iterations, float);
199 itkGetMacro(CG_iterations, float);
200
202 itkSetMacro(DisableDisplacedDetectorFilter, bool);
203 itkGetMacro(DisableDisplacedDetectorFilter, bool);
204
205protected:
208
210 void
211 VerifyPreconditions() const override;
212
214 void
215 GenerateData() override;
216
236
240 void
241 VerifyInputInformation() const override
242 {}
243
246 void
248 void
250
254 std::vector<float> m_GatingWeights;
256
257private:
258 float m_Alpha;
259 float m_Beta;
260 unsigned int m_AL_iterations;
261 unsigned int m_CG_iterations;
262
264};
265} // namespace rtk
266
267
268#ifndef ITK_MANUAL_INSTANTIATION
269# include "rtkADMMTotalVariationConeBeamReconstructionFilter.hxx"
270#endif
271
272#endif
Pixel-wise addition of two images.
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.
ForwardDifferenceGradientImageFilter< TOutputImage, typename TOutputImage::ValueType, typename TOutputImage::ValueType, GradientImageType > ImageGradientFilterType
IterativeConeBeamReconstructionFilter< TOutputImage, TOutputImage > Superclass
BackProjectionImageFilter< TOutputImage, TOutputImage >::Pointer m_BackProjectionFilterForConjugateGradient
rtk::BackwardDifferenceDivergenceImageFilter< GradientImageType, TOutputImage > ImageDivergenceFilterType
void SetGatingWeights(std::vector< float > weights)
rtk::BackProjectionImageFilter< TOutputImage, TOutputImage > BackProjectionFilterType
rtk::ADMMTotalVariationConjugateGradientOperator< TOutputImage > CGOperatorFilterType
BackProjectionImageFilter< TOutputImage, TOutputImage >::Pointer m_BackProjectionFilter
itk::CovariantVector< typename TOutputImage::ValueType, TOutputImage::ImageDimension > VectorPixelType
rtk::SoftThresholdTVImageFilter< GradientImageType > SoftThresholdTVFilterType
ForwardProjectionImageFilter< TOutputImage, TOutputImage >::Pointer m_ForwardProjectionFilter
rtk::ForwardProjectionImageFilter< TOutputImage, TOutputImage > ForwardProjectionFilterType
typename TOutputImage::template RebindImageType< VectorPixelType, TOutputImage::ImageDimension > GradientImageType
Implements the operator A used in the conjugate gradient step of ADMM reconstruction with total varia...
Computes the backward differences divergence (adjoint of the forward differences gradient) of the inp...
Solves AX = B by conjugate gradient.
Computes the gradient of an image using forward difference.
Base class for forward projection, i.e. accumulation along x-ray lines.
Mother class for cone beam reconstruction filters which need runtime selection of their forward and b...
enum { FP_JOSEPH=0, FP_CUDARAYCAST=2, FP_JOSEPHATTENUATED=3, FP_ZENG=4, FP_CUDAWARP=5, FP_CUDAZENG=6 } ForwardProjectionType
enum { BP_VOXELBASED=0, BP_JOSEPH=1, BP_CUDAVOXELBASED=2, BP_CUDARAYCAST=4, BP_JOSEPHATTENUATED=5, BP_ZENG=6, BP_CUDAWARP=7, BP_CUDAZENG=8 } BackProjectionType
Multiplies each (n-1) dimension image by the corresponding element in a vector.
Computes the Total Variation from a gradient input image (pixels are vectors), soft thresholds it,...
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)