RTK  1.4.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  * 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 rtkFDKWarpBackProjectionImageFilter_h
20 #define rtkFDKWarpBackProjectionImageFilter_h
21 
23 
24 #include <itkBarrier.h>
25 
26 namespace rtk
27 {
28 
47 template <class TInputImage, class TOutputImage, class TDeformation>
49  public FDKBackProjectionImageFilter<TInputImage,TOutputImage>
50 {
51 public:
57  typedef typename TInputImage::PixelType InputPixelType;
58  typedef typename TOutputImage::RegionType OutputImageRegionType;
59 
60  typedef TDeformation DeformationType;
61  typedef typename DeformationType::Pointer DeformationPointer;
62 
66  typedef itk::Image<InputPixelType, TInputImage::ImageDimension-1> ProjectionImageType;
67  typedef typename ProjectionImageType::Pointer ProjectionImagePointer;
68 
70  itkNewMacro(Self);
71 
74 
76  itkGetMacro(Deformation, DeformationPointer);
77  itkSetObjectMacro(Deformation, DeformationType);
79 
80 protected:
82  virtual ~FDKWarpBackProjectionImageFilter() ITK_OVERRIDE {}
83 
84  void BeforeThreadedGenerateData() ITK_OVERRIDE;
85 
86  void ThreadedGenerateData( const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
87 
88 private:
89  FDKWarpBackProjectionImageFilter(const Self&); //purposely not implemented
90  void operator=(const Self&); //purposely not implemented
91 
92  DeformationPointer m_Deformation;
95 };
96 
97 } // end namespace rtk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "rtkFDKWarpBackProjectionImageFilter.hxx"
101 #endif
102 
103 #endif
itk::Image< InputPixelType, TInputImage::ImageDimension-1 > ProjectionImageType
FDKBackProjectionImageFilter< TInputImage, TOutputImage > Superclass
CPU version of the warp backprojection of motion-compensated FDK.
A templated class holding a vector of M x (M+1) matrices.
CPU version of the backprojection of the FDK algorithm.
unsigned int ThreadIdType
rtk::ProjectionGeometry< TOutputImage::ImageDimension > GeometryType