RTK  2.6.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  * 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 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:
45  ITK_DISALLOW_COPY_AND_MOVE(DisplacedDetectorForOffsetFieldOfViewImageFilter);
46 
52 
54  using InputImageType = TInputImage;
55  using OutputImageType = TOutputImage;
56  using OutputImageRegionType = typename OutputImageType::RegionType;
58 
61 
63  itkNewMacro(Self);
64 
66 #ifdef itkOverrideGetNameOfClassMacro
67  itkOverrideGetNameOfClassMacro(DisplacedDetectorForOffsetFieldOfViewImageFilter);
68 #else
70 #endif
71 
72 
73 protected:
76 
77  void
78  GenerateOutputInformation() override;
79 
80  void
81  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
82 
83 private:
87  double m_FOVRadius{ -1. };
88  double m_FOVCenterX{ 0. };
89  double m_FOVCenterZ{ 0. };
90 }; // end of class
91 
92 } // end namespace rtk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 # include "rtkDisplacedDetectorForOffsetFieldOfViewImageFilter.hxx"
96 #endif
97 
98 #endif
Weigting for displaced detectors.
TInputImage InputImageType
Projection geometry for a source and a 2-D flat panel.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType