RTK  1.4.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  * http://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 "itkCSVFileReaderBase.h"
23 #include "itkArray2D.h"
24 
25 namespace rtk
26 {
27 
39 {
40 public:
46 
48  itkNewMacro(Self)
49 
50 
51  itkTypeMacro(Self,Superclass)
52 
54  typedef itk::Array2D<float> Array2DType;
55 
57  typedef float ValueType;
58 
61  // itkGetModifiableObjectMacro(Array2D,Array2DType);
62 
65  void Parse() ITK_OVERRIDE;
66 
69  virtual void Update();
70 
73  virtual Array2DType GetOutput();
74 
76  itkSetMacro(UnevenTemporalSpacing, bool)
77  itkGetMacro(UnevenTemporalSpacing, bool)
78 
80  itkSetMacro(NumberOfReconstructedFrames, int)
81  itkGetMacro(NumberOfReconstructedFrames, int)
82 
84  void SetSelectedProjections(std::vector<bool> sprojs);
85  itkGetMacro(SelectedProjections, std::vector<bool>)
86 
87 protected:
88 
90  virtual ~PhasesToInterpolationWeights () ITK_OVERRIDE {}
91 
93  void PrintSelf(std::ostream & os, itk::Indent indent) const ITK_OVERRIDE;
94 
95 private:
96 
100  std::vector<bool> m_SelectedProjections;
101 
102  PhasesToInterpolationWeights(const Self &); //purposely not implemented
103  void operator=(const Self &); //purposely not implemented
104 };
105 
106 } //end namespace rtk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "rtkPhasesToInterpolationWeights.hxx"
110 #endif
111 
112 #endif
STL namespace.
Parses csv file containing the cardiac or respiratory phases of each projection, and generates interp...
itk::SmartPointer< const Self > ConstPointer
#define itkSetMacro(name, type)