RTK  2.5.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 #ifdef itkOverrideGetNameOfClassMacro
70  itkOverrideGetNameOfClassMacro(ParkerShortScanImageFilter);
71 #else
73 #endif
74 
75 
77  itkGetModifiableObjectMacro(Geometry, GeometryType);
78  itkSetObjectMacro(Geometry, GeometryType);
80 
82  itkGetMacro(AngularGapThreshold, double);
83  itkSetMacro(AngularGapThreshold, double);
85 
86 protected:
88  ~ParkerShortScanImageFilter() override = default;
89 
91  void
92  VerifyPreconditions() ITKv5_CONST override;
93 
94  void
95  GenerateInputRequestedRegion() override;
96 
97  void
98  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
99 
101  double m_Delta;
102 
104  double m_FirstAngle;
105 
107  bool m_IsShortScan{ false };
108 
109 private:
112 
118 
121 }; // end of class
122 
123 } // end namespace rtk
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 # include "rtkParkerShortScanImageFilter.hxx"
127 #endif
128 
129 #endif
TInputImage InputImageType
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType