ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkFDKWeightProjectionFilter.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 rtkFDKWeightProjectionFilter_h
20#define rtkFDKWeightProjectionFilter_h
21
22#include "rtkConfiguration.h"
25
26namespace rtk
27{
28
49
50template <class TInputImage, class TOutputImage = TInputImage>
51class ITK_TEMPLATE_EXPORT FDKWeightProjectionFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(FDKWeightProjectionFilter);
55
61
63 using InputImageType = TInputImage;
64 using OutputImageType = TOutputImage;
65 using OutputImageRegionType = typename OutputImageType::RegionType;
66
68 itkNewMacro(Self);
69
71 itkOverrideGetNameOfClassMacro(FDKWeightProjectionFilter);
72
75 itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
76
77protected:
79 ~FDKWeightProjectionFilter() override = default;
80
82 void
83 VerifyPreconditions() const override;
84
85 void
87
88 void
89 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
90
91private:
93 std::vector<double> m_ConstantProjectionFactor;
94
96 std::vector<double> m_TiltAngles;
97
100}; // end of class
101
102} // end namespace rtk
103
105
106#if defined(RTK_USE_CUDA) && defined(RTK_EXTERN_TEMPLATES)
107ITK_GCC_PRAGMA_DIAG_PUSH()
108ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
109extern template class RTK_EXPORT_EXPLICIT rtk::FDKWeightProjectionFilter<itk::CudaImage<float, 3>>;
110ITK_GCC_PRAGMA_DIAG_POP()
111#endif
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "rtkFDKWeightProjectionFilter.hxx"
115#endif
116
117#endif
Base class for filters that take an image as input and produce an image as output.
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
void BeforeThreadedGenerateData() override
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
~FDKWeightProjectionFilter() override=default
void VerifyPreconditions() const override
Projection geometry for a source and a 2-D flat panel.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....