ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkRayConvexIntersectionImageFilter.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 rtkRayConvexIntersectionImageFilter_h
20#define rtkRayConvexIntersectionImageFilter_h
21
22#include "rtkConfiguration.h"
23#include "rtkConvexShape.h"
26
27namespace rtk
28{
29
39template <class TInputImage, class TOutputImage>
40class ITK_TEMPLATE_EXPORT RayConvexIntersectionImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(RayConvexIntersectionImageFilter);
44
50
52 using OutputImageRegionType = typename TOutputImage::RegionType;
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(RayConvexIntersectionImageFilter);
64
66 itkGetModifiableObjectMacro(ConvexShape, ConvexShape);
67 itkSetObjectMacro(ConvexShape, ConvexShape);
68
70 itkGetConstObjectMacro(Geometry, GeometryType);
71 itkSetConstObjectMacro(Geometry, GeometryType);
72
86 itkGetMacro(Attenuation, double);
87 itkSetMacro(Attenuation, double);
88
89protected:
92
95 void
97
99 void
100 VerifyPreconditions() const override;
101
103 void
104 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
105
106private:
109 double m_Attenuation = 0.;
110};
111
112} // end namespace rtk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "rtkRayConvexIntersectionImageFilter.hxx"
116#endif
117
118#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
Base class for a 3D convex shape.
itk::SmartPointer< Self > Pointer
itk::Point< ScalarType, Dimension > PointType
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
~RayConvexIntersectionImageFilter() override=default
typename GeometryType::ConstPointer GeometryConstPointer
rtk::ThreeDCircularProjectionGeometry GeometryType
void VerifyPreconditions() const override
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)