RTK  2.6.0
Reconstruction Toolkit
rtkFDKWarpBackProjectionImageFilter.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 rtkFDKWarpBackProjectionImageFilter_h
20 #define rtkFDKWarpBackProjectionImageFilter_h
21 
23 
24 namespace rtk
25 {
26 
45 template <class TInputImage, class TOutputImage, class TDeformation>
46 class ITK_TEMPLATE_EXPORT FDKWarpBackProjectionImageFilter
47  : public FDKBackProjectionImageFilter<TInputImage, TOutputImage>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_MOVE(FDKWarpBackProjectionImageFilter);
51 
57  using InputPixelType = typename TInputImage::PixelType;
58  using OutputImageRegionType = typename TOutputImage::RegionType;
59 
60  using DeformationType = TDeformation;
61  using DeformationPointer = typename DeformationType::Pointer;
62 
66  using ProjectionImageType = itk::Image<InputPixelType, TInputImage::ImageDimension - 1>;
68 
70  itkNewMacro(Self);
71 
73 #ifdef itkOverrideGetNameOfClassMacro
74  itkOverrideGetNameOfClassMacro(FDKWarpBackProjectionImageFilter);
75 #else
77 #endif
78 
79 
81  itkGetMacro(Deformation, DeformationPointer);
82  itkSetObjectMacro(Deformation, DeformationType);
84 
85 protected:
87  ~FDKWarpBackProjectionImageFilter() override = default;
88 
89  void
90  GenerateData() override;
91 
92 private:
94 };
95 
96 } // end namespace rtk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "rtkFDKWarpBackProjectionImageFilter.hxx"
100 #endif
101 
102 #endif
typename itk::Matrix< double, TDimension, TDimension+1 > MatrixType
typename TInputImage::PixelType InputPixelType
typename ProjectionImageType::Pointer ProjectionImagePointer
Projection geometry for a source and a 2-D flat panel.
CPU version of the warp backprojection of motion-compensated FDK.
A templated class holding a vector of M x (M+1) matrices.
typename OutputImageType::RegionType OutputImageRegionType
CPU version of the backprojection of the FDK algorithm.
typename GeometryType::MatrixType ProjectionMatrixType