ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkForwardProjectionImageFilter.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 rtkForwardProjectionImageFilter_h
20#define rtkForwardProjectionImageFilter_h
21
22#include "rtkMacro.h"
25
26namespace rtk
27{
28
36template <class TInputImage, class TOutputImage = TInputImage>
37class ITK_TEMPLATE_EXPORT ForwardProjectionImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(ForwardProjectionImageFilter);
41
47
50
52 itkOverrideGetNameOfClassMacro(ForwardProjectionImageFilter);
53
55 itkGetConstObjectMacro(Geometry, GeometryType);
56 itkSetConstObjectMacro(Geometry, GeometryType);
57
58protected:
60 : m_Geometry(nullptr)
61 {
63 this->SetInPlace(true);
64 };
65
66 ~ForwardProjectionImageFilter() override = default;
67
69 void
70 VerifyPreconditions() const override;
71
73 void
75
78 void
79 VerifyInputInformation() const override
80 {}
81
82private:
85};
86
87} // end namespace rtk
88
90
91#if defined(RTK_USE_CUDA) && defined(RTK_EXTERN_TEMPLATES)
92ITK_GCC_PRAGMA_DIAG_PUSH()
93ITK_GCC_PRAGMA_DIAG(ignored "-Wattributes")
94extern template class RTK_EXPORT_EXPLICIT
95 rtk::ForwardProjectionImageFilter<itk::CudaImage<float, 3>, itk::CudaImage<float, 3>>;
96ITK_GCC_PRAGMA_DIAG_POP()
97#endif
98
99#ifndef ITK_MANUAL_INSTANTIATION
100# include "rtkForwardProjectionImageFilter.hxx"
101#endif
102
103#endif
Base class for filters that take an image as input and overwrite that image as the output.
virtual void SetNumberOfRequiredInputs(DataObjectPointerArraySizeType)
Set the number of required indexed inputs.
Implements transparent reference counting.
void GenerateInputRequestedRegion() override
void VerifyPreconditions() const override
itk::InPlaceImageFilter< TOutputImage, TOutputImage > Superclass
~ForwardProjectionImageFilter() override=default
Projection geometry for a source and a 2-D flat panel.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....