RTK  2.0.1
Reconstruction Toolkit
rtkProjectGeometricPhantomImageFilter.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 rtkProjectGeometricPhantomImageFilter_h
20 #define rtkProjectGeometricPhantomImageFilter_h
21 
22 #include <itkInPlaceImageFilter.h>
23 #include <itkAddImageFilter.h>
24 #include "rtkGeometricPhantom.h"
26 
27 namespace rtk
28 {
29 
39 template <class TInputImage, class TOutputImage>
41  public itk::InPlaceImageFilter<TInputImage,TOutputImage>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(ProjectGeometricPhantomImageFilter);
45 
51 
56  using StringType = std::string;
59 
61  itkNewMacro(Self);
62 
65 
67  itkGetConstObjectMacro(GeometricPhantom, GeometricPhantom);
68  itkSetConstObjectMacro(GeometricPhantom, GeometricPhantom);
70 
72  itkGetConstObjectMacro(Geometry, GeometryType);
73  itkSetConstObjectMacro(Geometry, GeometryType);
75 
77  itkSetMacro(ConfigFile, StringType);
78  itkGetMacro(ConfigFile, StringType);
80 
82  itkSetMacro(PhantomScale, VectorType);
83  itkGetMacro(PhantomScale, VectorType);
85 
88  itkSetMacro(OriginOffset, VectorType);
89  itkGetMacro(OriginOffset, VectorType);
91 
94  itkSetMacro(IsForbildConfigFile, bool);
95  itkGetConstMacro(IsForbildConfigFile, bool);
96  itkBooleanMacro(IsForbildConfigFile);
98 
100  itkSetMacro(RotationMatrix, RotationMatrixType);
101  itkGetMacro(RotationMatrix, RotationMatrixType);
103 
104 protected:
106  ~ProjectGeometricPhantomImageFilter() override = default;
107 
108  void GenerateData() override;
109 
110 private:
118 };
119 
120 } // end namespace rtk
121 
122 #ifndef ITK_MANUAL_INSTANTIATION
123 #include "rtkProjectGeometricPhantomImageFilter.hxx"
124 #endif
125 
126 #endif
Container for a geometric phantom, i.e., a set of ConvexShapes.
Analytical projection a GeometricPhantom.
itk::Vector< ScalarType, Dimension > VectorType
itk::SmartPointer< const Self > ConstPointer
Projection geometry for a source and a 2-D flat panel.
itk::Matrix< ScalarType, Dimension, Dimension > RotationMatrixType
~ProjectGeometricPhantomImageFilter() override=default
#define itkSetMacro(name, type)