RTK  2.6.0
Reconstruction Toolkit
rtkForwardProjectionImageFilter.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 rtkForwardProjectionImageFilter_h
20 #define rtkForwardProjectionImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
24 #include "rtkMacro.h"
25 
26 namespace rtk
27 {
28 
36 template <class TInputImage, class TOutputImage = TInputImage>
37 class ITK_TEMPLATE_EXPORT ForwardProjectionImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_MOVE(ForwardProjectionImageFilter);
41 
47 
50 
52  itkOverrideGetNameOfClassMacro(ForwardProjectionImageFilter);
53 
55  itkGetConstObjectMacro(Geometry, GeometryType);
56  itkSetConstObjectMacro(Geometry, GeometryType);
58 
59 protected:
61  : m_Geometry(nullptr)
62  {
63  this->SetNumberOfRequiredInputs(2);
64  this->SetInPlace(true);
65  };
66 
67  ~ForwardProjectionImageFilter() override = default;
68 
70  void
71  VerifyPreconditions() const override;
72 
74  void
75  GenerateInputRequestedRegion() override;
76 
79  void
80  VerifyInputInformation() const override
81  {}
82 
83 private:
86 };
87 
88 } // end namespace rtk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 # include "rtkForwardProjectionImageFilter.hxx"
92 #endif
93 
94 #endif
Base class for forward projection, i.e. accumulation along x-ray lines.
Projection geometry for a source and a 2-D flat panel.