RTK  2.6.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  itkOverrideGetNameOfClassMacro(FDKBackProjectionImageFilter);
60 
61 protected:
62  FDKBackProjectionImageFilter() = default;
63  ~FDKBackProjectionImageFilter() override = default;
64 
65  void
66  GenerateOutputInformation() override;
67 
68  void
69  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
70 
73  void
74  OptimizedBackprojectionX(const OutputImageRegionType & region,
75  const ProjectionMatrixType & matrix,
76  const ProjectionImagePointer projection) override;
77 
80  void
81  OptimizedBackprojectionY(const OutputImageRegionType & region,
82  const ProjectionMatrixType & matrix,
83  const ProjectionImagePointer projection) override;
84 };
85 
86 } // end namespace rtk
87 
88 #ifndef ITK_MANUAL_INSTANTIATION
89 # include "rtkFDKBackProjectionImageFilter.hxx"
90 #endif
91 
92 #endif
typename ProjectionImageType::Pointer ProjectionImagePointer
typename OutputImageType::RegionType OutputImageRegionType
CPU version of the backprojection of the FDK algorithm.
typename GeometryType::MatrixType ProjectionMatrixType