RTK  2.7.0
Reconstruction Toolkit
rtkZengBackProjectionImageFilter.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 rtkZengBackProjectionImageFilter_h
20 #define rtkZengBackProjectionImageFilter_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>
35 #include <itkExtractImageFilter.h>
39 
40 #include "rtkConstantImageSource.h"
41 
42 #include <itkVectorImage.h>
43 namespace rtk
44 {
45 
112 template <class TInputImage, class TOutputImage>
113 class ITK_TEMPLATE_EXPORT ZengBackProjectionImageFilter : public BackProjectionImageFilter<TInputImage, TOutputImage>
114 {
115 public:
118  using InputPixelType = typename TInputImage::PixelType;
119  using OutputPixelType = typename TOutputImage::PixelType;
120  using OutputImageRegionType = typename TOutputImage::RegionType;
124 
151 
153  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
154 
157 
159  itkNewMacro(Self);
160 
162  itkOverrideGetNameOfClassMacro(ZengBackProjectionImageFilter);
163 
165  itkGetMacro(SigmaZero, double);
166  itkSetMacro(SigmaZero, double);
168 
170  itkGetMacro(Alpha, double);
171  itkSetMacro(Alpha, double);
173 
174 
175 protected:
177  ~ZengBackProjectionImageFilter() override = default;
178 
180  void
181  GenerateInputRequestedRegion() override;
182 
183  void
184  GenerateOutputInformation() override;
185 
186  void
187  GenerateData() override;
188 
191  void
192  VerifyInputInformation() const override;
193 
209 
210 private:
211  ZengBackProjectionImageFilter(const Self &) = delete; // purposely not implemented
212  void
213  operator=(const Self &) = delete; // purposely not implemented
214 
215  double m_SigmaZero{ 1.5417233052142099 };
216  double m_Alpha{ 0.016241189545787734 };
217  VectorType m_VectorOrthogonalDetector{ 0. };
218  PointType m_centerVolume{ 0 };
219 };
220 
221 } // end namespace rtk
222 
223 #ifndef ITK_MANUAL_INSTANTIATION
224 # include "rtkZengBackProjectionImageFilter.hxx"
225 #endif
226 
227 #endif
typename ExtractImageFilterType::Pointer ExtractImageFilterPointerType
ConstantVolumeSourcePointerType m_ConstantVolumeSource
typename OuputCPUImageType::PointType PointType
typename PasteImageFilterType::Pointer PasteImageFilterPointerType
Generate an n-dimensional image with constant pixel values.
typename CustomUnaryFilterType::Pointer CustomUnaryFilterPointerType
typename TInputImage::PixelType InputPixelType
MultiplyImageFilterPointerType m_AttenuationMapMultiplyImageFilter
typename TOutputImage::PixelType OutputPixelType
#define itkSetMacro(name, type)
typename ConstantVolumeSourceType::Pointer ConstantVolumeSourcePointerType
typename RegionOfInterestFilterType::Pointer RegionOfInterestPointerType
DiscreteGaussianFilterPointeurType m_DiscreteGaussianFilter
typename MultiplyImageFilterType::Pointer MultiplyImageFilterPointerType
ChangeInformationPointerType m_AttenuationMapChangeInformation
typename ResampleImageFilterType::Pointer ResampleImageFilterPointerType
RegionOfInterestPointerType m_AttenuationMapRegionOfInterest
typename TOutputImage::RegionType OutputImageRegionType
typename DiscreteGaussianFilterType::Pointer DiscreteGaussianFilterPointeurType
MultiplyImageFilterPointerType m_MultiplyImageFilter
ResampleImageFilterPointerType m_ResampleImageFilter
typename ChangeInformationFilterType::Pointer ChangeInformationPointerType
ResampleImageFilterPointerType m_AttenuationMapResampleImageFilter
typename TransformType::Pointer TransformPointerType
typename AddImageFilterType::Pointer AddImageFilterPointerType