ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkSARTConeBeamReconstructionFilter.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 rtkSARTConeBeamReconstructionFilter_h
20#define rtkSARTConeBeamReconstructionFilter_h
21
29
30#include <itkAddImageAdaptor.h>
31#include <itkAddImageFilter.h>
37
38namespace rtk
39{
40
140template <class TVolumeImage, class TProjectionImage = TVolumeImage>
141class ITK_TEMPLATE_EXPORT SARTConeBeamReconstructionFilter
142 : public rtk::IterativeConeBeamReconstructionFilter<TVolumeImage, TProjectionImage>
143{
144public:
145 ITK_DISALLOW_COPY_AND_MOVE(SARTConeBeamReconstructionFilter);
146
152
154 using VolumeType = TVolumeImage;
155 using ProjectionType = TProjectionImage;
156 using ProjectionPixelType = typename ProjectionType::PixelType;
157
174
177
179 itkNewMacro(Self);
180
182 itkOverrideGetNameOfClassMacro(SARTConeBeamReconstructionFilter);
183
185 itkGetModifiableObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
186 itkSetObjectMacro(Geometry, ThreeDCircularProjectionGeometry);
187
189 itkGetMacro(NumberOfIterations, unsigned int);
190 itkSetMacro(NumberOfIterations, unsigned int);
191
193 itkGetMacro(NumberOfProjectionsPerSubset, unsigned int);
194 itkSetMacro(NumberOfProjectionsPerSubset, unsigned int);
195
197 itkGetMacro(Lambda, double);
198 itkSetMacro(Lambda, double);
199
201 itkGetMacro(EnforcePositivity, bool);
202 itkSetMacro(EnforcePositivity, bool);
203
205 void
206 SetGatingWeights(std::vector<float> weights);
207
209 itkSetMacro(DisableDisplacedDetectorFilter, bool);
210 itkGetMacro(DisableDisplacedDetectorFilter, bool);
211
216 itkSetMacro(DivisionThreshold, ProjectionPixelType);
217 itkGetMacro(DivisionThreshold, ProjectionPixelType);
218
222 itkSetMacro(ResetNesterovEvery, int);
223 itkGetMacro(ResetNesterovEvery, int);
224
225protected:
228
230 void
231 VerifyPreconditions() const override;
232
233 void
235
236 void
238
239 void
240 GenerateData() override;
241
244 void
245 VerifyInputInformation() const override
246 {}
247
268
270
273
274private:
278
281
284
287 double m_Lambda;
288
291 bool m_IsGated{};
292 std::vector<float> m_GatingWeights;
293
296}; // end of class
297
298} // end namespace rtk
299
300#ifndef ITK_MANUAL_INSTANTIATION
301# include "rtkSARTConeBeamReconstructionFilter.hxx"
302#endif
303
304#endif
Pixel-wise addition of two images.
Decrease the image size by cropping the image to the selected region bounds.
Pixel-wise multiplication of two images.
Implements transparent reference counting.
Pixel-wise subtraction of two images.
Set image values to a user-specified value if they are below, above, or outside threshold values.
Generate an n-dimensional image with constant pixel values.
Base class for forward projection, i.e. accumulation along x-ray lines.
Mother class for cone beam reconstruction filters which need runtime selection of their forward and b...
enum { FP_JOSEPH=0, FP_CUDARAYCAST=2, FP_JOSEPHATTENUATED=3, FP_ZENG=4, FP_CUDAWARP=5, FP_CUDAZENG=6 } ForwardProjectionType
enum { BP_VOXELBASED=0, BP_JOSEPH=1, BP_CUDAVOXELBASED=2, BP_CUDARAYCAST=4, BP_JOSEPHATTENUATED=5, BP_ZENG=6, BP_CUDAWARP=7, BP_CUDAZENG=8 } BackProjectionType
Applies Nesterov's momentum technique.
rtk::ConstantImageSource< ProjectionType > ConstantProjectionSourceType
rtk::RayBoxIntersectionImageFilter< ProjectionType, ProjectionType > RayBoxIntersectionFilterType
rtk::NesterovUpdateImageFilter< VolumeType > NesterovFilterType
itk::SubtractImageFilter< ProjectionType, ProjectionType > SubtractFilterType
void SetGatingWeights(std::vector< float > weights)
ForwardProjectionFilterType::Pointer m_ForwardProjectionFilter
BackProjectionFilterType::Pointer m_BackProjectionNormalizationFilter
void VerifyPreconditions() const override
itk::MultiplyImageFilter< ProjectionType, ProjectionType, ProjectionType > GatingWeightsFilterType
itk::MultiplyImageFilter< ProjectionType, ProjectionType, ProjectionType > MultiplyFilterType
ConstantProjectionSourceType::Pointer m_ConstantProjectionStackSource
itk::DivideOrZeroOutImageFilter< VolumeType, VolumeType, VolumeType > DivideVolumeFilterType
rtk::DisplacedDetectorImageFilter< ProjectionType > DisplacedDetectorFilterType
rtk::BackProjectionImageFilter< VolumeType, ProjectionType > BackProjectionFilterType
IterativeConeBeamReconstructionFilter< TVolumeImage, TProjectionImage > Superclass
itk::ThresholdImageFilter< VolumeType > ThresholdFilterType
itk::AddImageFilter< VolumeType, VolumeType > AddFilterType
~SARTConeBeamReconstructionFilter() override=default
ThreeDCircularProjectionGeometry::Pointer m_Geometry
typename Superclass::BackProjectionType BackProjectionType
itk::ExtractImageFilter< ProjectionType, ProjectionType > ExtractFilterType
typename Superclass::ForwardProjectionType ForwardProjectionType
itk::DivideOrZeroOutImageFilter< ProjectionType, ProjectionType, ProjectionType > DivideProjectionFilterType
ConstantProjectionSourceType::Pointer m_OneConstantProjectionStackSource
rtk::ForwardProjectionImageFilter< ProjectionType, VolumeType > ForwardProjectionFilterType
RayBoxIntersectionFilterType::Pointer m_RayBoxFilter
DivideProjectionFilterType::Pointer m_DivideProjectionFilter
DisplacedDetectorFilterType::Pointer m_DisplacedDetectorFilter
rtk::ConstantImageSource< VolumeType > ConstantImageSourceType
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)