RTK  1.4.0
Reconstruction Toolkit
rtkDisplacedDetectorForOffsetFieldOfViewImageFilter.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 rtkDisplacedDetectorForOffsetFieldOfViewImageFilter_h
20 #define rtkDisplacedDetectorForOffsetFieldOfViewImageFilter_h
21 
23 
24 namespace rtk
25 {
26 
40 template<class TInputImage, class TOutputImage=TInputImage>
42  public rtk::DisplacedDetectorImageFilter<TInputImage, TOutputImage>
43 {
44 public:
50 
52  typedef TInputImage InputImageType;
53  typedef TOutputImage OutputImageType;
54  typedef typename OutputImageType::RegionType OutputImageRegionType;
56 
59 
61  itkNewMacro(Self);
62 
65 
66 protected:
69 
70  void GenerateOutputInformation() ITK_OVERRIDE;
71 
72 #if ITK_VERSION_MAJOR<5
73  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE;
74 #else
75  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) ITK_OVERRIDE;
76 #endif
77 
78 private:
79  DisplacedDetectorForOffsetFieldOfViewImageFilter(const Self&); //purposely not implemented
80  void operator=(const Self&); //purposely not implemented
81 
85  double m_FOVRadius;
86  double m_FOVCenterX;
87  double m_FOVCenterZ;
88 }; // end of class
89 
90 } // end namespace rtk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 #include "rtkDisplacedDetectorForOffsetFieldOfViewImageFilter.hxx"
94 #endif
95 
96 #endif
Weigting for displaced detectors.
Projection geometry for a source and a 2-D flat panel.
unsigned int ThreadIdType
rtk::DisplacedDetectorImageFilter< TInputImage, TOutputImage > Superclass