ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkMaskCollimationImageFilter.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 rtkMaskCollimationImageFilter_h
20#define rtkMaskCollimationImageFilter_h
21
22#include "rtkConfiguration.h"
25
26namespace rtk
27{
28
39template <class TInputImage, class TOutputImage>
40class ITK_TEMPLATE_EXPORT MaskCollimationImageFilter : public itk::InPlaceImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(MaskCollimationImageFilter);
44
50
51 using OutputImageRegionType = typename TOutputImage::RegionType;
54 using FileNamesContainer = std::vector<std::string>;
55
57 itkNewMacro(Self);
58
60 itkOverrideGetNameOfClassMacro(MaskCollimationImageFilter);
61
63 itkGetModifiableObjectMacro(Geometry, GeometryType);
64 itkSetObjectMacro(Geometry, GeometryType);
65
68 itkSetMacro(RotationAxisIndex, unsigned int);
69
70protected:
72 ~MaskCollimationImageFilter() override = default;
73
75 void
76 VerifyPreconditions() const override;
77
78 void
80
82 void
83 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
84
87 void
88 VerifyInputInformation() const override
89 {}
90
91 // Set default parameters
92 unsigned int m_RotationAxisIndex = 1; // y-axis
93
94private:
97};
98
99} // end namespace rtk
100
101#ifndef ITK_MANUAL_INSTANTIATION
102# include "rtkMaskCollimationImageFilter.hxx"
103#endif
104
105#endif
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
itk::SmartPointer< const Self > ConstPointer
rtk::ThreeDCircularProjectionGeometry GeometryType
typename TOutputImage::RegionType OutputImageRegionType
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
void BeforeThreadedGenerateData() override
typename GeometryType::Pointer GeometryPointer
~MaskCollimationImageFilter() override=default
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void VerifyPreconditions() const override
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)