RTK  2.5.0
Reconstruction Toolkit
rtkFDKBackProjectionImageFilter.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 rtkFDKBackProjectionImageFilter_h
20 #define rtkFDKBackProjectionImageFilter_h
21 
23 
24 namespace rtk
25 {
26 
38 template <class TInputImage, class TOutputImage>
39 class ITK_TEMPLATE_EXPORT FDKBackProjectionImageFilter : public BackProjectionImageFilter<TInputImage, TOutputImage>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(FDKBackProjectionImageFilter);
43 
49 
50  using ProjectionMatrixType = typename Superclass::ProjectionMatrixType;
51  using OutputImageRegionType = typename TOutputImage::RegionType;
52  using ProjectionImageType = typename Superclass::ProjectionImageType;
54 
56  itkNewMacro(Self);
57 
59 #ifdef itkOverrideGetNameOfClassMacro
60  itkOverrideGetNameOfClassMacro(FDKBackProjectionImageFilter);
61 #else
63 #endif
64 
65 
66 protected:
67  FDKBackProjectionImageFilter() = default;
68  ~FDKBackProjectionImageFilter() override = default;
69 
70  void
71  GenerateOutputInformation() override;
72 
73  void
74  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
75 
78  void
79  OptimizedBackprojectionX(const OutputImageRegionType & region,
80  const ProjectionMatrixType & matrix,
81  const ProjectionImagePointer projection) override;
82 
85  void
86  OptimizedBackprojectionY(const OutputImageRegionType & region,
87  const ProjectionMatrixType & matrix,
88  const ProjectionImagePointer projection) override;
89 };
90 
91 } // end namespace rtk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 # include "rtkFDKBackProjectionImageFilter.hxx"
95 #endif
96 
97 #endif
typename ProjectionImageType::Pointer ProjectionImagePointer
typename OutputImageType::RegionType OutputImageRegionType
CPU version of the backprojection of the FDK algorithm.
typename GeometryType::MatrixType ProjectionMatrixType