RTK  1.4.0
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:
47 
49  itkNewMacro(Self)
50 
51 
52  itkTypeMacro(Self,Superclass)
53 
55  typedef itk::Array2D<float> Array2DType;
56 
58  typedef float ValueType;
59 
61  void Parse() ITK_OVERRIDE {}
62 
64  virtual void Update();
65 
68  virtual Array2DType GetOutput();
69 
71  itkSetMacro(NumberOfReconstructedFrames, int)
72  itkGetMacro(NumberOfReconstructedFrames, int)
73 
74 
75  void SetSignal(const std::vector<double> signal);
76 
77 protected:
79  virtual ~SignalToInterpolationWeights () ITK_OVERRIDE {}
80 
82  void PrintSelf(std::ostream & os, itk::Indent indent) const ITK_OVERRIDE;
83 
84 private:
87  std::vector<double> m_Signal;
88 
89  SignalToInterpolationWeights(const Self &); //purposely not implemented
90  void operator=(const Self &); //purposely not implemented
91 };
92 
93 } //end namespace rtk
94 
95 #ifndef ITK_MANUAL_INSTANTIATION
96 #include "rtkSignalToInterpolationWeights.hxx"
97 #endif
98 
99 #endif
Computes interpolation weights for 4D reconstruction.
#define itkSetMacro(name, type)
itk::SmartPointer< const Self > ConstPointer