ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Nonunit
Review
include
itkComplexBSplineInterpolateImageFunction.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 __itkComplexBSplineInterpolateImageFunction_h
19
#define __itkComplexBSplineInterpolateImageFunction_h
20
21
#include "
itkBSplineInterpolateImageFunction.h
"
22
#include "
itkComplexToRealImageFilter.h
"
23
#include "
itkComplexToImaginaryImageFilter.h
"
24
25
namespace
itk
26
{
43
template
<
class
TImageType,
class
TCoordRep =
double
,
class
TCoefficientType =
double
>
44
class
ITK_EXPORT
ComplexBSplineInterpolateImageFunction
:
45
public
InterpolateImageFunction
< TImageType, TCoordRep >
46
{
47
public
:
48
50
typedef
ComplexBSplineInterpolateImageFunction
Self
;
51
53
typedef
InterpolateImageFunction< TImageType, TCoordRep >
Superclass
;
54
56
typedef
SmartPointer< Self >
Pointer
;
57
59
typedef
SmartPointer< const Self >
ConstPointer
;
60
62
itkTypeMacro(
ComplexBSplineInterpolateImageFunction
,
InterpolateImageFunction
);
63
65
itkNewMacro(
Self
);
66
68
itkStaticConstMacro(ImageDimension,
unsigned
int
, Superclass::ImageDimension);
69
71
typedef
typename
Superclass::OutputType
OutputType
;
72
74
typedef
typename
Superclass::InputImageType
InputImageType
;
75
77
typedef
typename
Superclass::IndexType
IndexType
;
78
80
typedef
typename
Superclass::ContinuousIndexType
ContinuousIndexType
;
81
83
typedef
typename
Superclass::PointType
PointType
;
84
86
typedef
Image< double, itkGetStaticConstMacro(ImageDimension) >
InternalImageType
;
87
89
typedef
ComplexToRealImageFilter< InputImageType, InternalImageType >
RealFilterType
;
90
typedef
ComplexToImaginaryImageFilter< InputImageType, InternalImageType >
ImaginaryFilterType
;
91
93
typedef
BSplineInterpolateImageFunction< InternalImageType, TCoordRep, TCoefficientType >
InterpolatorType
;
94
103
virtual
OutputType
EvaluateAtContinuousIndex(
const
ContinuousIndexType
& index)
const
;
104
106
/* typedef CovariantVector< OutputType, itkGetStaticConstMacro( ImageDimension ) > CovariantVectorType;
107
108
CovariantVectorType EvaluateDerivative( const PointType & point ) const
109
{
110
ContinuousIndexType index;
111
this->GetInputImage()->TransformPhysicalPointToContinuousIndex( point, index );
112
return ( this->EvaluateDerivativeAtContinuousIndex( index ) );
113
}
114
115
CovariantVectorType EvaluateDerivativeAtContinuousIndex( const ContinuousIndexType & x ) const;
116
*/
117
120
void
SetSplineOrder(
unsigned
int
SplineOrder);
121
122
itkGetConstMacro(SplineOrder,
int
);
123
126
virtual
void
SetInputImage(
const
TImageType *inputData);
127
128
protected
:
129
ComplexBSplineInterpolateImageFunction
();
130
virtual
~ComplexBSplineInterpolateImageFunction
() {}
131
void
operator=(
const
Self &);
//purposely not implemented
132
133
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
134
135
private
:
136
ComplexBSplineInterpolateImageFunction
(
const
Self &);
//purposely not
137
// implemented
138
139
unsigned
int
m_SplineOrder
;
140
141
typename
InterpolatorType::Pointer
m_RealInterpolator
;
142
typename
InterpolatorType::Pointer
m_ImaginaryInterpolator
;
143
144
typename
RealFilterType::Pointer
m_RealFilter
;
145
146
typename
ImaginaryFilterType::Pointer
m_ImaginaryFilter
;
147
};
// class
148
}
// namespace
149
150
#ifndef ITK_MANUAL_INSTANTIATION
151
#include "itkComplexBSplineInterpolateImageFunction.hxx"
152
#endif
153
154
#endif
155
Generated on Sun Dec 9 2012 00:52:35 for ITK by
1.8.2