RTK  2.0.1
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  * http://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 {
129 template<typename VolumeSeriesType, typename ProjectionStackType>
131 {
132 public:
133  ITK_DISALLOW_COPY_AND_ASSIGN(MotionCompensatedFourDROOSTERConeBeamReconstructionFilter);
134 
139  using VolumeType = ProjectionStackType;
140  using CovariantVectorForSpatialGradient = itk::CovariantVector< typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension - 1>;
143 
146 
147 #ifdef RTK_USE_CUDA
148  using SpatialGradientImageType = itk::CudaImage<CovariantVectorForSpatialGradient, VolumeSeriesType::ImageDimension>;
149  using TemporalGradientImageType = itk::CudaImage<CovariantVectorForTemporalGradient, VolumeSeriesType::ImageDimension>;
150  using DVFSequenceImageType = itk::CudaImage<DVFVectorType, VolumeSeriesType::ImageDimension>;
151  using DVFImageType = itk::CudaImage<DVFVectorType, VolumeSeriesType::ImageDimension - 1>;
152 #else
156  using DVFImageType = itk::Image<DVFVectorType, VolumeSeriesType::ImageDimension - 1>;
157 #endif
158 
160  itkNewMacro(Self)
161 
162 
164 
166  <VolumeSeriesType, ProjectionStackType>;
167 
169  void SetForwardProjectionFilter(ForwardProjectionType itkNotUsed(fwtype)) override {itkExceptionMacro(<< "ForwardProjection cannot be changed");}
170  void SetBackProjectionFilter(BackProjectionType itkNotUsed(bptype)) override {itkExceptionMacro(<< "BackProjection cannot be changed");}
172 
174  void SetSignal(const std::vector<double> signal) override;
175 
176 protected:
179 
181  void GenerateData() override;
182 
183  void GenerateOutputInformation() override;
184 
185  void GenerateInputRequestedRegion() override;
186 
187 };
188 } //namespace ITK
189 
190 
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "rtkMotionCompensatedFourDROOSTERConeBeamReconstructionFilter.hxx"
193 #endif
194 
195 #endif
void SetSignal(const std::vector< double > signal) override
Implements 4D RecOnstructiOn using Spatial and TEmporal Regularization (short 4D ROOSTER) ...
itk::CovariantVector< typename VolumeSeriesType::ValueType, VolumeSeriesType::ImageDimension-1 > CovariantVectorForSpatialGradient
Implements Motion Compensated 4D RecOnstructiOn using Spatial and TEmporal Regularization (short MC-R...