RTK  2.0.1
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  * http://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>
38  public itk::InPlaceImageFilter<TInputImage,TOutputImage>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_ASSIGN(ForwardProjectionImageFilter);
42 
48 
51 
54 
56  itkGetConstObjectMacro(Geometry, GeometryType);
57  itkSetConstObjectMacro(Geometry, GeometryType);
59 
60 protected:
62  this->SetNumberOfRequiredInputs(2); this->SetInPlace( true );
63  };
64 
65  ~ForwardProjectionImageFilter() override = default;
66 
68  void GenerateInputRequestedRegion() override;
69 
72 #if ITK_VERSION_MAJOR<5
73  void VerifyInputInformation() override {}
74 #else
75  void VerifyInputInformation() const override {}
76 #endif
77 
78 
79 private:
82 };
83 
84 } // end namespace rtk
85 
86 #ifndef ITK_MANUAL_INSTANTIATION
87 #include "rtkForwardProjectionImageFilter.hxx"
88 #endif
89 
90 #endif
Base class for forward projection, i.e. accumulation along x-ray lines.
void GenerateInputRequestedRegion() override
Projection geometry for a source and a 2-D flat panel.
~ForwardProjectionImageFilter() override=default