ITK  5.0.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_TEMPLATE_EXPORT FourierSeriesPath:public
59  ParametricPath< VDimension >
60 {
61 public:
62  ITK_DISALLOW_COPY_AND_ASSIGN(FourierSeriesPath);
63 
69 
71  itkTypeMacro(FourierSeriesPath, ParametricPath);
72 
74  using InputType = typename Superclass::InputType;
75 
77  using OutputType = typename Superclass::OutputType;
78 
86 
88  OutputType Evaluate(const InputType & input) const override;
89 
92  VectorType EvaluateDerivative(const InputType & input) const override;
93 
95  void AddHarmonic(const VectorType & CosCoefficients,
96  const VectorType & SinCoefficients);
97 
99  void Clear()
100  {
101  m_CosCoefficients->Initialize();
102  m_SinCoefficients->Initialize();
103  this->Modified();
104  }
106 
108  itkNewMacro(Self);
109 
111  void Initialize() override
112  {
113  this->Clear();
114  }
115 
116 protected:
118  ~FourierSeriesPath() override = default;
119  void PrintSelf(std::ostream & os, Indent indent) const override;
120 
121 private:
124 };
125 } // end namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkFourierSeriesPath.hxx"
129 #endif
130 
131 #endif
typename CoefficientsType::Pointer CoefficientsPointer
typename Superclass::InputType InputType
CoefficientsPointer m_CosCoefficients
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
typename Superclass::OutputType OutputType
CoefficientsPointer m_SinCoefficients
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
Definition: itkOffset.h:67
Represent a parametric path through ND Space.
Represent a closed path through ND Space by its frequency components.
A templated class holding a point in n-Dimensional image space.
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60
Base class for all data objects in ITK.