RTK  2.0.1
Reconstruction Toolkit
rtkSignalToInterpolationWeights.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 rtkSignalToInterpolationWeights_h
20 #define rtkSignalToInterpolationWeights_h
21 
22 #include "itkCSVFileReaderBase.h"
23 #include "itkArray2D.h"
24 
25 namespace rtk
26 {
27 
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(SignalToInterpolationWeights);
43 
49 
51  itkNewMacro(Self)
52 
53 
54  itkTypeMacro(Self,Superclass)
55 
57  using Array2DType = itk::Array2D<float>;
58 
60  using ValueType = float;
61 
63  void Parse() override {}
64 
66  virtual void Update();
67 
70  virtual Array2DType GetOutput();
71 
73  itkSetMacro(NumberOfReconstructedFrames, int)
74  itkGetMacro(NumberOfReconstructedFrames, int)
75 
76 
77  void SetSignal(const std::vector<double> signal);
78 
79 protected:
81  ~SignalToInterpolationWeights () override = default;
82 
84  void PrintSelf(std::ostream & os, itk::Indent indent) const override;
85 
86 private:
89  std::vector<double> m_Signal;
90 };
91 
92 } //end namespace rtk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "rtkSignalToInterpolationWeights.hxx"
96 #endif
97 
98 #endif
Computes interpolation weights for 4D reconstruction.
#define itkSetMacro(name, type)