RTK  2.5.0
Reconstruction Toolkit
rtkSheppLoganPhantom.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 rtkSheppLoganPhantom_h
20 #define rtkSheppLoganPhantom_h
21 
22 #include "RTKExport.h"
23 #include "rtkGeometricPhantom.h"
24 #include "rtkQuadricShape.h"
25 
26 namespace rtk
27 {
41 class RTK_EXPORT SheppLoganPhantom : public GeometricPhantom
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_MOVE(SheppLoganPhantom);
45 
51 
56 
58  itkNewMacro(Self);
59 
61 #ifdef itkOverrideGetNameOfClassMacro
62  itkOverrideGetNameOfClassMacro(SheppLoganPhantom);
63 #else
64  itkTypeMacro(SheppLoganPhantom, GeometricPhantom);
65 #endif
66 
67 
68 protected:
70  ~SheppLoganPhantom() override = default;
71 
72 private:
73  void
74  SetEllipsoid(ScalarType spax,
75  ScalarType spay,
76  ScalarType spaz,
77  ScalarType centerx,
78  ScalarType centery,
79  ScalarType centerz,
80  ScalarType angle,
81  ScalarType density);
82 };
83 
84 } // namespace rtk
85 #endif // rtkSheppLoganPhantom_h
Container for a geometric phantom, i.e., a set of ConvexShapes.
Superclass::ScalarType ScalarType
Superclass::PointType PointType
class ITK_FORWARD_EXPORT DataObject
ConvexShape::ScalarType ScalarType
Superclass::VectorType VectorType
SheppLogan phantom as defined in "Principles of CT imaging" by Kak & Slaney.