ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFourierSeriesPath.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
25namespace itk
26{
58template <unsigned int VDimension>
59class ITK_TEMPLATE_EXPORT FourierSeriesPath : public ParametricPath<VDimension>
60{
61public:
62 ITK_DISALLOW_COPY_AND_MOVE(FourierSeriesPath);
63
69
71 itkOverrideGetNameOfClassMacro(FourierSeriesPath);
72
74 using typename Superclass::InputType;
75
77 using typename Superclass::OutputType;
78
86
89 Evaluate(const InputType & input) const override;
90
94 EvaluateDerivative(const InputType & input) const override;
95
97 void
98 AddHarmonic(const VectorType & CosCoefficients, const VectorType & SinCoefficients);
99
101 void
103 {
104 m_CosCoefficients->Initialize();
105 m_SinCoefficients->Initialize();
106 this->Modified();
107 }
108
109
111 itkNewMacro(Self);
112
114 void
115 Initialize() override
116 {
117 this->Clear();
118 }
119
120protected:
122 ~FourierSeriesPath() override = default;
123 void
124 PrintSelf(std::ostream & os, Indent indent) const override;
125
126private:
129};
130} // end namespace itk
131
132#ifndef ITK_MANUAL_INSTANTIATION
133# include "itkFourierSeriesPath.hxx"
134#endif
135
136#endif
A templated class holding a point in n-Dimensional image space.
SmartPointer< const Self > ConstPointer
ContinuousIndex< double, VDimension > ContinuousIndexType
void PrintSelf(std::ostream &os, Indent indent) const override
CoefficientsPointer m_SinCoefficients
OutputType Evaluate(const InputType &input) const override
typename CoefficientsType::Pointer CoefficientsPointer
SmartPointer< Self > Pointer
~FourierSeriesPath() override=default
VectorType EvaluateDerivative(const InputType &input) const override
Vector< double, VDimension > VectorType
Offset< VDimension > OffsetType
VectorContainer< unsigned int, VectorType > CoefficientsType
CoefficientsPointer m_CosCoefficients
Index< VDimension > IndexType
void AddHarmonic(const VectorType &CosCoefficients, const VectorType &SinCoefficients)
ParametricPath< VDimension > Superclass
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void Modified() const
ContinuousIndexType OutputType
Definition itkPath.h:75
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer
Represent a n-dimensional index in a n-dimensional image.
Definition itkIndex.h:69
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition itkOffset.h:67