ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Filtering
Path
include
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
:
63
typedef
FourierSeriesPath
Self
;
64
typedef
ParametricPath< VDimension >
Superclass
;
65
typedef
SmartPointer< Self >
Pointer
;
66
typedef
SmartPointer< const Self >
ConstPointer
;
67
69
itkTypeMacro(
FourierSeriesPath
,
ParametricPath
);
70
72
typedef
typename
Superclass::InputType
InputType
;
73
75
typedef
typename
Superclass::OutputType
OutputType
;
76
78
typedef
ContinuousIndex< double, VDimension >
ContinuousIndexType
;
79
typedef
Index< VDimension >
IndexType
;
80
typedef
Offset< VDimension >
OffsetType
;
81
typedef
Vector< double, VDimension >
VectorType
;
82
typedef
VectorContainer< unsigned, VectorType >
CoefficientsType
;
83
typedef
typename
CoefficientsType::Pointer
CoefficientsPointer
;
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
:
115
FourierSeriesPath
();
116
~FourierSeriesPath
(){}
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
123
CoefficientsPointer
m_CosCoefficients
;
124
CoefficientsPointer
m_SinCoefficients
;
125
};
126
}
// end namespace itk
127
128
#ifndef ITK_MANUAL_INSTANTIATION
129
#include "itkFourierSeriesPath.hxx"
130
#endif
131
132
#endif
133
Generated on Mon May 13 2013 00:50:36 for ITK by
1.8.3.1