ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
23
24#include "rtkConfiguration.h"
26
27namespace rtk
28{
29
43
44template <class TInputImage, class TOutputImage = TInputImage>
45class ITK_TEMPLATE_EXPORT ParkerShortScanImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
46{
47public:
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);
74
76 itkGetMacro(AngularGapThreshold, double);
77 itkSetMacro(AngularGapThreshold, double);
78
79protected:
81 ~ParkerShortScanImageFilter() override = default;
82
84 void
85 VerifyPreconditions() const override;
86
87 void
89
90 void
91 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
92
94 double m_Delta{};
95
97 double m_FirstAngle{};
98
100 bool m_IsShortScan{ false };
101
102private:
105
111
114}; // end of class
115
116} // end namespace rtk
117
118#ifndef ITK_MANUAL_INSTANTIATION
119# include "rtkParkerShortScanImageFilter.hxx"
120#endif
121
122#endif
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
itk::Image< typename OutputImageType::PixelType, 1 > WeightImageType
void VerifyPreconditions() const override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
~ParkerShortScanImageFilter() override=default
itk::ImageToImageFilter< OutputImageType, OutputImageType > Superclass
void GenerateInputRequestedRegion() override
Projection geometry for a source and a 2-D flat panel.
constexpr double pi
Definition itkMath.h:65
#define itkSetMacro(name, type)