RTK  2.6.0
Reconstruction Toolkit
rtkMotionCompensatedFourDROOSTERConeBeamReconstructionFilter.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 #ifndef rtkMotionCompensatedFourDROOSTERConeBeamReconstructionFilter_h
19 #define rtkMotionCompensatedFourDROOSTERConeBeamReconstructionFilter_h
20 
23 
24 namespace rtk
25 {
138 template <typename VolumeSeriesType, typename ProjectionStackType>
140  : public rtk::FourDROOSTERConeBeamReconstructionFilter<VolumeSeriesType, ProjectionStackType>
141 {
142 public:
144 
149  using VolumeType = ProjectionStackType;
151  itk::CovariantVector<typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension - 1>;
154 
155  using ForwardProjectionType = typename Superclass::ForwardProjectionType;
156  using BackProjectionType = typename Superclass::BackProjectionType;
157 
158 #ifdef RTK_USE_CUDA
159  using SpatialGradientImageType = itk::CudaImage<CovariantVectorForSpatialGradient, VolumeSeriesType::ImageDimension>;
161  itk::CudaImage<CovariantVectorForTemporalGradient, VolumeSeriesType::ImageDimension>;
162  using DVFSequenceImageType = itk::CudaImage<DVFVectorType, VolumeSeriesType::ImageDimension>;
163  using DVFImageType = itk::CudaImage<DVFVectorType, VolumeSeriesType::ImageDimension - 1>;
164 #else
168  using DVFImageType = itk::Image<DVFVectorType, VolumeSeriesType::ImageDimension - 1>;
169 #endif
170 
172  itkNewMacro(Self);
173 
175 #ifdef itkOverrideGetNameOfClassMacro
176  itkOverrideGetNameOfClassMacro(MotionCompensatedFourDROOSTERConeBeamReconstructionFilter);
177 #else
179 #endif
180 
181 
184 
186  void
188  {
189  itkExceptionMacro(<< "ForwardProjection cannot be changed");
190  }
191  void
192  SetBackProjectionFilter(BackProjectionType itkNotUsed(bptype)) override
193  {
194  itkExceptionMacro(<< "BackProjection cannot be changed");
195  }
197 
199  void
200  SetSignal(const std::vector<double> signal) override;
201 
202 protected:
205 
207  void
208  GenerateData() override;
209 
210  void
211  GenerateOutputInformation() override;
212 
213  void
214  GenerateInputRequestedRegion() override;
215 };
216 } // namespace rtk
217 
218 
219 #ifndef ITK_MANUAL_INSTANTIATION
220 # include "rtkMotionCompensatedFourDROOSTERConeBeamReconstructionFilter.hxx"
221 #endif
222 
223 #endif
Implements 4D RecOnstructiOn using Spatial and TEmporal Regularization (short 4D ROOSTER) ...
Implements Motion Compensated 4D RecOnstructiOn using Spatial and TEmporal Regularization (short MC-R...