RTK  1.4.0
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:
49 
54  typedef std::string StringType;
57 
59  itkNewMacro(Self);
60 
63 
65  itkGetConstObjectMacro(GeometricPhantom, GeometricPhantom);
66  itkSetConstObjectMacro(GeometricPhantom, GeometricPhantom);
68 
70  itkGetConstObjectMacro(Geometry, GeometryType);
71  itkSetConstObjectMacro(Geometry, GeometryType);
73 
75  itkSetMacro(ConfigFile, StringType);
76  itkGetMacro(ConfigFile, StringType);
78 
80  itkSetMacro(PhantomScale, VectorType);
81  itkGetMacro(PhantomScale, VectorType);
83 
86  itkSetMacro(OriginOffset, VectorType);
87  itkGetMacro(OriginOffset, VectorType);
89 
92  itkSetMacro(IsForbildConfigFile, bool);
93  itkGetConstMacro(IsForbildConfigFile, bool);
94  itkBooleanMacro(IsForbildConfigFile);
96 
98  itkSetMacro(RotationMatrix, RotationMatrixType);
99  itkGetMacro(RotationMatrix, RotationMatrixType);
101 
102 protected:
104  virtual ~ProjectGeometricPhantomImageFilter() ITK_OVERRIDE {}
105 
106  void GenerateData() ITK_OVERRIDE;
107 
108 private:
109  ProjectGeometricPhantomImageFilter(const Self&); //purposely not implemented
110  void operator=(const Self&); //purposely not implemented
111 
112  GeometricPhantomConstPointer m_GeometricPhantom;
113  GeometryConstPointer m_Geometry;
114  StringType m_ConfigFile;
115  VectorType m_PhantomScale;
116  VectorType m_OriginOffset;
118  RotationMatrixType m_RotationMatrix;
119 };
120 
121 } // end namespace rtk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "rtkProjectGeometricPhantomImageFilter.hxx"
125 #endif
126 
127 #endif
Container for a geometric phantom, i.e., a set of ConvexShapes.
Analytical projection a GeometricPhantom.
Projection geometry for a source and a 2-D flat panel.
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
#define itkSetMacro(name, type)