ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDisplacedDetectorImageFilter.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 rtkDisplacedDetectorImageFilter_h
20#define rtkDisplacedDetectorImageFilter_h
21
22#include "rtkConfiguration.h"
25
26namespace rtk
27{
28
59template <class TInputImage, class TOutputImage = TInputImage>
60class ITK_TEMPLATE_EXPORT DisplacedDetectorImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
61{
62public:
63 ITK_DISALLOW_COPY_AND_MOVE(DisplacedDetectorImageFilter);
64
70
72 using InputImageType = TInputImage;
73 using OutputImageType = TOutputImage;
74 static constexpr unsigned int NDimension = TInputImage::ImageDimension;
75 using OutputImageRegionType = typename OutputImageType::RegionType;
77
80
82 itkNewMacro(Self);
83
85 itkOverrideGetNameOfClassMacro(DisplacedDetectorImageFilter);
86
88 itkGetConstObjectMacro(Geometry, GeometryType);
89 itkSetConstObjectMacro(Geometry, GeometryType);
90
93 itkGetMacro(PadOnTruncatedSide, bool);
94 itkSetMacro(PadOnTruncatedSide, bool);
95
100 void
101 SetOffsets(double minOffset, double maxOffset);
102 itkGetMacro(MinimumOffset, double);
103 itkGetMacro(MaximumOffset, double);
104
107 itkGetMacro(Disable, bool);
108 itkSetMacro(Disable, bool);
109
110protected:
112
113 ~DisplacedDetectorImageFilter() override = default;
114
116 itkGetMacro(InferiorCorner, double);
117 itkGetMacro(SuperiorCorner, double);
118
120 itkGetMacro(OffsetsSet, bool);
121
123 void
124 VerifyPreconditions() const override;
125
126 void
128
129 void
131
132 void
133 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
134
135 // Iterative filters do not need padding
137
138private:
141
147 double m_MinimumOffset{ 0. };
148 double m_MaximumOffset{ 0. };
149
153 bool m_OffsetsSet{ false };
154
158 double m_InferiorCorner{ 0. };
159 double m_SuperiorCorner{ 0. };
160
164 bool m_Disable{ false };
165
166}; // end of class
167
168} // end namespace rtk
169
171
172#if defined(RTK_USE_CUDA) && defined(RTK_EXTERN_TEMPLATES)
173ITK_GCC_PRAGMA_DIAG_PUSH()
174ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
175extern template class RTK_EXPORT_EXPLICIT rtk::DisplacedDetectorImageFilter<itk::CudaImage<float, 3>>;
176ITK_GCC_PRAGMA_DIAG_POP()
177#endif
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "rtkDisplacedDetectorImageFilter.hxx"
181#endif
182
183#endif
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
void VerifyPreconditions() const override
void GenerateInputRequestedRegion() override
itk::ImageToImageFilter< TOutputImage, TOutputImage > Superclass
~DisplacedDetectorImageFilter() override=default
void GenerateOutputInformation() override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void SetOffsets(double minOffset, double maxOffset)
Projection geometry for a source and a 2-D flat panel.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)