ITK
4.2.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
// Define instantiation macro for this template.
129
#define ITK_TEMPLATE_FourierSeriesPath(_, EXPORT, TypeX, TypeY) \
130
namespace itk \
131
{ \
132
_( 1 ( class EXPORT FourierSeriesPath< ITK_TEMPLATE_1 TypeX > ) ) \
133
namespace Templates \
134
{ \
135
typedef FourierSeriesPath< ITK_TEMPLATE_1 TypeX > \
136
FourierSeriesPath##TypeY; \
137
} \
138
}
139
140
#if ITK_TEMPLATE_EXPLICIT
141
#include "Templates/itkFourierSeriesPath+-.h"
142
#endif
143
144
#if ITK_TEMPLATE_TXX
145
#include "itkFourierSeriesPath.hxx"
146
#endif
147
148
#endif
149
Generated on Tue Jul 10 2012 23:26:01 for ITK by
1.8.1