RTK  1.4.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  * 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:
46 
49 
52 
54  itkGetConstObjectMacro(Geometry, GeometryType);
55  itkSetConstObjectMacro(Geometry, GeometryType);
57 
58 protected:
60  this->SetNumberOfRequiredInputs(2); this->SetInPlace( true );
61  };
62 
63  virtual ~ForwardProjectionImageFilter() ITK_OVERRIDE {}
64 
66  void GenerateInputRequestedRegion() ITK_OVERRIDE;
67 
70 #if ITK_VERSION_MAJOR<5
71  void VerifyInputInformation() ITK_OVERRIDE {}
72 #else
73  void VerifyInputInformation() const ITK_OVERRIDE {}
74 #endif
75 
76 
77 private:
78  ForwardProjectionImageFilter(const Self&); //purposely not implemented
79  void operator=(const Self&); //purposely not implemented
80 
82  GeometryPointer m_Geometry;
83 };
84 
85 } // end namespace rtk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "rtkForwardProjectionImageFilter.hxx"
89 #endif
90 
91 #endif
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
Base class for forward projection, i.e. accumulation along x-ray lines.
void GenerateInputRequestedRegion() override
rtk::ThreeDCircularProjectionGeometry GeometryType
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< const Self > ConstPointer