RTK  2.6.0
Reconstruction Toolkit
rtkPhasesToInterpolationWeights.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 rtkPhasesToInterpolationWeights_h
20 #define rtkPhasesToInterpolationWeights_h
21 
22 #include "RTKExport.h"
23 #include "itkCSVFileReaderBase.h"
24 #include "itkArray2D.h"
25 
26 namespace rtk
27 {
28 
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_MOVE(PhasesToInterpolationWeights);
44 
50 
52  itkNewMacro(Self);
53 
55 #ifdef itkOverrideGetNameOfClassMacro
56  itkOverrideGetNameOfClassMacro(PhasesToInterpolationWeights);
57 #else
59 #endif
60 
61 
64 
66  using ValueType = float;
67 
70  // itkGetModifiableObjectMacro(Array2D,Array2DType);
71 
74  void
75  Parse() override;
76 
79  virtual void
80  Update();
81 
84  virtual Array2DType
85  GetOutput();
86 
88  itkSetMacro(UnevenTemporalSpacing, bool);
89  itkGetMacro(UnevenTemporalSpacing, bool);
91 
93  itkSetMacro(NumberOfReconstructedFrames, int);
94  itkGetMacro(NumberOfReconstructedFrames, int);
96 
98  void
99  SetSelectedProjections(std::vector<bool> sprojs);
100  itkGetMacro(SelectedProjections, std::vector<bool>);
102 
103 protected:
105  ~PhasesToInterpolationWeights() override = default;
106 
108  void
109  PrintSelf(std::ostream & os, itk::Indent indent) const override;
110 
111 private:
115  std::vector<bool> m_SelectedProjections;
116 };
117 
118 } // end namespace rtk
119 
120 #endif
Parses csv file containing the cardiac or respiratory phases of each projection, and generates interp...
#define itkSetMacro(name, type)