RTK  2.0.1
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  * 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 rtkParkerShortScanImageFilter_h
20 #define rtkParkerShortScanImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
23 #include <mutex>
24 
26 #include "rtkConfiguration.h"
27 
28 namespace rtk
29 {
30 
47 template<class TInputImage, class TOutputImage=TInputImage>
48 class ITK_EXPORT ParkerShortScanImageFilter :
49  public itk::InPlaceImageFilter<TInputImage, TOutputImage>
50 {
51 public:
52  ITK_DISALLOW_COPY_AND_ASSIGN(ParkerShortScanImageFilter);
53 
59 
61  using InputImageType = TInputImage;
62  using OutputImageType = TOutputImage;
63  using OutputImageRegionType = typename OutputImageType::RegionType;
65 
68 
70  itkNewMacro(Self);
71 
74 
76  itkGetModifiableObjectMacro(Geometry, GeometryType);
77  itkSetObjectMacro(Geometry, GeometryType);
79 
81  itkGetMacro(AngularGapThreshold, double);
82  itkSetMacro(AngularGapThreshold, double);
84 
85 protected:
87  ~ParkerShortScanImageFilter() override = default;
88 
89 #if ITK_VERSION_MAJOR<5
90  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId) override;
91 #else
92  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) override;
93 #endif
94 
95 private:
98 
104 
107 
108  std::mutex m_WarningMutex;
109 }; // end of class
110 
111 } // end namespace rtk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "rtkParkerShortScanImageFilter.hxx"
115 #endif
116 
117 #endif
typename OutputImageType::RegionType OutputImageRegionType
Projection geometry for a source and a 2-D flat panel.
unsigned int ThreadIdType
#define itkSetMacro(name, type)