RTK  2.6.0
Reconstruction Toolkit
rtkParkerShortScanImageFilter.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 rtkParkerShortScanImageFilter_h
20 #define rtkParkerShortScanImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
23 
25 #include "rtkConfiguration.h"
26 
27 namespace rtk
28 {
29 
44 template <class TInputImage, class TOutputImage = TInputImage>
45 class ITK_TEMPLATE_EXPORT ParkerShortScanImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_MOVE(ParkerShortScanImageFilter);
49 
55 
57  using InputImageType = TInputImage;
58  using OutputImageType = TOutputImage;
59  using OutputImageRegionType = typename OutputImageType::RegionType;
61 
64 
66  itkNewMacro(Self);
67 
69  itkOverrideGetNameOfClassMacro(ParkerShortScanImageFilter);
70 
72  itkGetModifiableObjectMacro(Geometry, GeometryType);
73  itkSetObjectMacro(Geometry, GeometryType);
75 
77  itkGetMacro(AngularGapThreshold, double);
78  itkSetMacro(AngularGapThreshold, double);
80 
81 protected:
83  ~ParkerShortScanImageFilter() override = default;
84 
86  void
87  VerifyPreconditions() const override;
88 
89  void
90  GenerateInputRequestedRegion() override;
91 
92  void
93  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
94 
96  double m_Delta;
97 
99  double m_FirstAngle;
100 
102  bool m_IsShortScan{ false };
103 
104 private:
107 
113 
116 }; // end of class
117 
118 } // end namespace rtk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 # include "rtkParkerShortScanImageFilter.hxx"
122 #endif
123 
124 #endif
TInputImage InputImageType
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType