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 #ifdef itkOverrideGetNameOfClassMacro
53  itkOverrideGetNameOfClassMacro(ForwardProjectionImageFilter);
54 #else
56 #endif
57 
58 
60  itkGetConstObjectMacro(Geometry, GeometryType);
61  itkSetConstObjectMacro(Geometry, GeometryType);
63 
64 protected:
66  : m_Geometry(nullptr)
67  {
68  this->SetNumberOfRequiredInputs(2);
69  this->SetInPlace(true);
70  };
71 
72  ~ForwardProjectionImageFilter() override = default;
73 
75  void
76  VerifyPreconditions() const override;
77 
79  void
80  GenerateInputRequestedRegion() override;
81 
84  void
85  VerifyInputInformation() const override
86  {}
87 
88 private:
91 };
92 
93 } // end namespace rtk
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 # include "rtkForwardProjectionImageFilter.hxx"
97 #endif
98 
99 #endif
Base class for forward projection, i.e. accumulation along x-ray lines.
Projection geometry for a source and a 2-D flat panel.