ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * 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 rtkProjectGeometricPhantomImageFilter_h
20#define rtkProjectGeometricPhantomImageFilter_h
21
22#include "rtkGeometricPhantom.h"
24#include <itkAddImageFilter.h>
26
27namespace rtk
28{
29
39template <class TInputImage, class TOutputImage>
40class ITK_TEMPLATE_EXPORT ProjectGeometricPhantomImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(ProjectGeometricPhantomImageFilter);
44
50
55 using StringType = std::string;
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(ProjectGeometricPhantomImageFilter);
65
67 itkGetConstObjectMacro(GeometricPhantom, GeometricPhantom);
68 itkSetConstObjectMacro(GeometricPhantom, GeometricPhantom);
69
71 itkGetConstObjectMacro(Geometry, GeometryType);
72 itkSetConstObjectMacro(Geometry, GeometryType);
73
75 itkSetMacro(ConfigFile, StringType);
76 itkGetMacro(ConfigFile, StringType);
77
79 itkSetMacro(PhantomScale, VectorType);
80 itkGetMacro(PhantomScale, VectorType);
81
83 virtual void
85 {
87 }
88
91 itkSetMacro(OriginOffset, VectorType);
92 itkGetMacro(OriginOffset, VectorType);
93
96 itkGetMacro(RotationMatrix, RotationMatrixType);
97
100 void
101 AddClipPlane(const VectorType & dir, const ScalarType & pos);
102 void
103 SetClipPlanes(const std::vector<VectorType> & dir, const std::vector<ScalarType> & pos);
104
105protected:
108
110 void
111 VerifyPreconditions() const override;
112
113 void
114 GenerateData() override;
115
116private:
123 std::vector<VectorType> m_PlaneDirections;
124 std::vector<ScalarType> m_PlanePositions;
125};
126
127} // end namespace rtk
128
129#ifndef ITK_MANUAL_INSTANTIATION
130# include "rtkProjectGeometricPhantomImageFilter.hxx"
131#endif
132
133#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
itk::Vector< ScalarType, Dimension > VectorType
itk::Matrix< ScalarType, Dimension, Dimension > RotationMatrixType
Container for a geometric phantom, i.e., a set of ConvexShapes.
itk::SmartPointer< const Self > ConstPointer
void SetClipPlanes(const std::vector< VectorType > &dir, const std::vector< ScalarType > &pos)
void VerifyPreconditions() const override
virtual void SetPhantomScale(VectorType _arg)
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
~ProjectGeometricPhantomImageFilter() override=default
void AddClipPlane(const VectorType &dir, const ScalarType &pos)
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)