ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkReorderProjectionsImageFilter.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 rtkReorderProjectionsImageFilter_h
20#define rtkReorderProjectionsImageFilter_h
21
22#include "rtkConfiguration.h"
25
26namespace rtk
27{
28
44template <class TInputImage, class TOutputImage = TInputImage>
45class ITK_TEMPLATE_EXPORT ReorderProjectionsImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
46{
47public:
48 ITK_DISALLOW_COPY_AND_MOVE(ReorderProjectionsImageFilter);
49
52
56
58 using InputImageType = TInputImage;
59 using OutputImageType = TOutputImage;
60 using OutputImageRegionType = typename OutputImageType::RegionType;
61 using PermutationType = enum { NONE = 0, SORT = 1, SHUFFLE = 2 };
62
66
68 itkNewMacro(Self);
69
71 itkOverrideGetNameOfClassMacro(ReorderProjectionsImageFilter);
72
74 itkGetModifiableObjectMacro(OutputGeometry, GeometryType);
75 itkSetConstObjectMacro(InputGeometry, ThreeDCircularProjectionGeometry);
76
78 itkGetMacro(Permutation, PermutationType);
80
82 void
83 SetInputSignal(const std::vector<double> & signal);
84 std::vector<double>
86
87protected:
89
90 ~ReorderProjectionsImageFilter() override = default;
91
93 void
94 VerifyPreconditions() const override;
95
96 void
98
99 void
100 GenerateData() override;
101
102private:
106
108 std::vector<double> m_InputSignal;
109 std::vector<double> m_OutputSignal;
110
113
115 std::vector<unsigned int> m_NewIndices;
116}; // end of class
117
118} // end namespace rtk
119
120#ifndef ITK_MANUAL_INSTANTIATION
121# include "rtkReorderProjectionsImageFilter.hxx"
122#endif
123
124#endif
Base class for filters that take an image as input and produce an image as output.
Implements transparent reference counting.
~ReorderProjectionsImageFilter() override=default
void VerifyPreconditions() const override
void GenerateOutputInformation() override
void SetInputSignal(const std::vector< double > &signal)
itk::ImageToImageFilter< TMeasuredProjections, TMeasuredProjections > Superclass
std::vector< double > GetOutputSignal()
Projection geometry for a source and a 2-D flat panel.
#define itkSetMacro(name, type)