RTK  1.4.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  * 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 
19 #ifndef rtkFDKBackProjectionImageFilter_h
20 #define rtkFDKBackProjectionImageFilter_h
21 
23 
24 namespace rtk
25 {
26 
38 template <class TInputImage, class TOutputImage>
39 class ITK_EXPORT FDKBackProjectionImageFilter :
40  public BackProjectionImageFilter<TInputImage,TOutputImage>
41 {
42 public:
48 
49  typedef typename Superclass::ProjectionMatrixType ProjectionMatrixType;
50  typedef typename TOutputImage::RegionType OutputImageRegionType;
51  typedef typename Superclass::ProjectionImageType ProjectionImageType;
52  typedef typename ProjectionImageType::Pointer ProjectionImagePointer;
53 
55  itkNewMacro(Self);
56 
59 
60 protected:
62  virtual ~FDKBackProjectionImageFilter() ITK_OVERRIDE {}
63 
64  void GenerateOutputInformation() ITK_OVERRIDE;
65 
66 #if ITK_VERSION_MAJOR<5
67  void ThreadedGenerateData( const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
68 #else
69  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) ITK_OVERRIDE;
70 #endif
71 
74  void OptimizedBackprojectionX(const OutputImageRegionType& region, const ProjectionMatrixType& matrix,
75  const ProjectionImagePointer projection) ITK_OVERRIDE;
76 
79  void OptimizedBackprojectionY(const OutputImageRegionType& region, const ProjectionMatrixType& matrix,
80  const ProjectionImagePointer projection) ITK_OVERRIDE;
81 
82 private:
83  FDKBackProjectionImageFilter(const Self&); //purposely not implemented
84  void operator=(const Self&); //purposely not implemented
85 };
86 
87 } // end namespace rtk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 #include "rtkFDKBackProjectionImageFilter.hxx"
91 #endif
92 
93 #endif
Superclass::ProjectionMatrixType ProjectionMatrixType
itk::SmartPointer< const Self > ConstPointer
Superclass::ProjectionImageType ProjectionImageType
CPU version of the backprojection of the FDK algorithm.
BackProjectionImageFilter< TInputImage, TOutputImage > Superclass
unsigned int ThreadIdType
ProjectionImageType::Pointer ProjectionImagePointer