RTK  2.7.0
Reconstruction Toolkit
rtkZengForwardProjectionImageFilter.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 rtkZengForwardProjectionImageFilter_h
20 #define rtkZengForwardProjectionImageFilter_h
21 
22 #include "rtkConfiguration.h"
24 #include "rtkMacro.h"
25 #include <itkPixelTraits.h>
26 
27 #include <itkMultiplyImageFilter.h>
28 #include <itkAddImageFilter.h>
30 #include <itkPasteImageFilter.h>
31 #include <itkResampleImageFilter.h>
32 #include <itkVector.h>
38 
39 #include <itkVectorImage.h>
40 namespace rtk
41 {
42 
61 template <class TInputImage, class TOutputImage>
62 class ITK_TEMPLATE_EXPORT ZengForwardProjectionImageFilter
63  : public ForwardProjectionImageFilter<TInputImage, TOutputImage>
64 {
65 public:
68  using InputPixelType = typename TInputImage::PixelType;
69  using OutputPixelType = typename TOutputImage::PixelType;
70  using OutputImageRegionType = typename TOutputImage::RegionType;
74 
97 
99  static constexpr unsigned int InputImageDimension = TOutputImage::ImageDimension;
100 
103 
105  itkNewMacro(Self);
106 
108  itkOverrideGetNameOfClassMacro(ZengForwardProjectionImageFilter);
109 
111  itkGetMacro(SigmaZero, double);
112  itkSetMacro(SigmaZero, double);
114 
116  itkGetMacro(Alpha, double);
117  itkSetMacro(Alpha, double);
119 
120 protected:
122  ~ZengForwardProjectionImageFilter() override = default;
123 
124  void
125  GenerateInputRequestedRegion() override;
126 
127  void
128  GenerateOutputInformation() override;
129 
130  void
131  GenerateData() override;
132 
135  void
136  VerifyInputInformation() const override;
137 
152 
153 
154 private:
155  ZengForwardProjectionImageFilter(const Self &) = delete; // purposely not implemented
156  void
157  operator=(const Self &) = delete; // purposely not implemented
158 
159  double m_SigmaZero{ 1.5417233052142099 };
160  double m_Alpha{ 0.016241189545787734 };
161  VectorType m_VectorOrthogonalDetector{ 0. };
162  PointType m_centerVolume{ 0 };
163 };
164 
165 } // end namespace rtk
166 
167 #ifndef ITK_MANUAL_INSTANTIATION
168 # include "rtkZengForwardProjectionImageFilter.hxx"
169 #endif
170 
171 #endif
Base class for forward projection, i.e. accumulation along x-ray lines.
typename ResampleImageFilterType::Pointer ResampleImageFilterPointerType
typename TOutputImage::RegionType OutputImageRegionType
typename PasteImageFilterType::Pointer PasteImageFilterPointerType
typename DiscreteGaussianFilterType::Pointer DiscreteGaussianFilterPointeurType
ResampleImageFilterPointerType m_AttenuationMapResampleImageFilter
typename MultiplyImageFilterType::Pointer MultpiplyImageFilterPointerType
#define itkSetMacro(name, type)
typename CustomUnaryFilterType::Pointer CustomUnaryFilterPointerType
typename AddImageFilterType::Pointer AddImageFilterPointerType
DiscreteGaussianFilterPointeurType m_DiscreteGaussianFilter
typename ChangeInformationFilterType::Pointer ChangeInformationPointerType
MultpiplyImageFilterPointerType m_AttenuationMapMultiplyImageFilter
typename RegionOfInterestFilterType::Pointer RegionOfInterestPointerType
typename InputCPUImageType::PointType PointType