ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkFourierSeriesPath.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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 #ifndef __itkFourierSeriesPath_h
19 #define __itkFourierSeriesPath_h
20 
21 #include "itkParametricPath.h"
22 #include "itkVectorContainer.h"
23 #include "itkIndex.h"
24 
25 namespace itk
26 {
57 template< unsigned int VDimension >
58 class ITK_EXPORT FourierSeriesPath:public
59  ParametricPath< VDimension >
60 {
61 public:
67 
70 
72  typedef typename Superclass::InputType InputType;
73 
75  typedef typename Superclass::OutputType OutputType;
76 
84 
86  virtual OutputType Evaluate(const InputType & input) const;
87 
90  virtual VectorType EvaluateDerivative(const InputType & input) const;
91 
93  void AddHarmonic(const VectorType & CosCoefficients,
94  const VectorType & SinCoefficients);
95 
97  void Clear()
98  {
99  m_CosCoefficients->Initialize();
100  m_SinCoefficients->Initialize();
101  this->Modified();
102  }
104 
106  itkNewMacro(Self);
107 
109  virtual void Initialize(void)
110  {
111  this->Clear();
112  }
113 
114 protected:
117  void PrintSelf(std::ostream & os, Indent indent) const;
118 
119 private:
120  FourierSeriesPath(const Self &); //purposely not implemented
121  void operator=(const Self &); //purposely not implemented
122 
125 };
126 } // end namespace itk
127 
128 #ifndef ITK_MANUAL_INSTANTIATION
129 #include "itkFourierSeriesPath.hxx"
130 #endif
131 
132 #endif
133