RTK  2.7.0
Reconstruction Toolkit
rtkMotionCompensatedFourDConjugateGradientConeBeamReconstructionFilter.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 rtkMotionCompensatedFourDConjugateGradientConeBeamReconstructionFilter_h
20 #define rtkMotionCompensatedFourDConjugateGradientConeBeamReconstructionFilter_h
21 
25 #ifdef RTK_USE_CUDA
28 #endif
29 
30 namespace rtk
31 {
69 template <typename VolumeSeriesType, typename ProjectionStackType>
71  : public rtk::FourDConjugateGradientConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>
72 {
73 public:
75 
81 
83  using InputImageType = VolumeSeriesType;
84  using OutputImageType = VolumeSeriesType;
85  using VolumeType = ProjectionStackType;
86  using VectorForDVF = itk::CovariantVector<typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension - 1>;
87 
88  using ForwardProjectionType = typename Superclass::ForwardProjectionType;
89  using BackProjectionType = typename Superclass::BackProjectionType;
90  using DVFSequenceImageType =
91  typename VolumeSeriesType::template RebindImageType<VectorForDVF, VolumeSeriesType::ImageDimension>;
92  using DVFImageType =
93  typename VolumeSeriesType::template RebindImageType<VectorForDVF, VolumeSeriesType::ImageDimension - 1>;
94 
98  itkNewMacro(Self);
99 
102 
104  void
105  SetDisplacementField(const DVFSequenceImageType * DisplacementField);
106  void
107  SetInverseDisplacementField(const DVFSequenceImageType * InverseDisplacementField);
108  typename DVFSequenceImageType::ConstPointer
109  GetDisplacementField();
110  typename DVFSequenceImageType::ConstPointer
111  GetInverseDisplacementField();
113 
115  void
116  SetSignal(const std::vector<double> signal) override;
117 
118  // Sub filters type alias
120  using MCCGOperatorType =
122 
124  itkSetMacro(UseCudaCyclicDeformation, bool);
125  itkGetMacro(UseCudaCyclicDeformation, bool);
127 
128 protected:
131 
132  void
133  GenerateOutputInformation() override;
134  void
135  GenerateInputRequestedRegion() override;
136 
138 
139 }; // end of class
140 
141 } // end namespace rtk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "rtkMotionCompensatedFourDConjugateGradientConeBeamReconstructionFilter.hxx"
145 #endif
146 
147 #endif
typename VolumeSeriesType::template RebindImageType< VectorForDVF, VolumeSeriesType::ImageDimension - 1 > DVFImageType
#define itkSetMacro(name, type)
Back projection part for motion compensated iterative 4D reconstruction.
Implements part of the 4D reconstruction by conjugate gradient.
typename VolumeSeriesType::template RebindImageType< VectorForDVF, VolumeSeriesType::ImageDimension > DVFSequenceImageType