VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkImageBSplineInterpolator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageBSplineInterpolator.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
39
#ifndef __vtkImageBSplineInterpolator_h
40
#define __vtkImageBSplineInterpolator_h
41
42
#include "
vtkAbstractImageInterpolator.h
"
43
44
#define VTK_IMAGE_BSPLINE_DEGREE_MAX 9
45
46
class
vtkImageData
;
47
struct
vtkInterpolationInfo
;
48
49
class
VTK_FILTERING_EXPORT
vtkImageBSplineInterpolator
:
50
public
vtkAbstractImageInterpolator
51
{
52
public
:
53
static
vtkImageBSplineInterpolator
*
New
();
54
vtkTypeMacro(
vtkImageBSplineInterpolator
,
vtkAbstractImageInterpolator
);
55
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
61
void
SetSplineDegree(
int
degree
);
62
int
GetSplineDegree
() {
return
this->SplineDegree; };
63
int
GetSplineDegreeMinValue
() {
return
0; }
64
int
GetSplineDegreeMaxValue
() {
return
VTK_IMAGE_BSPLINE_DEGREE_MAX
; }
66
72
virtual
void
ComputeSupportSize
(
const
double
matrix[16],
int
support[3]);
73
76
virtual
bool
IsSeparable
();
77
79
86
virtual
void
PrecomputeWeightsForExtent
(
87
const
double
matrix[16],
const
int
extent
[6],
int
newExtent[6],
88
vtkInterpolationWeights
*&weights);
89
virtual
void
PrecomputeWeightsForExtent
(
90
const
float
matrix[16],
const
int
extent
[6],
int
newExtent[6],
91
vtkInterpolationWeights
*&weights);
93
95
virtual
void
FreePrecomputedWeights
(
vtkInterpolationWeights
*&weights);
96
97
protected
:
98
vtkImageBSplineInterpolator
();
99
~
vtkImageBSplineInterpolator
();
100
102
virtual
void
InternalUpdate
();
103
105
virtual
void
InternalDeepCopy
(
vtkAbstractImageInterpolator
*obj);
106
108
109
virtual
void
GetInterpolationFunc
(
110
void
(**doublefunc)(
111
vtkInterpolationInfo
*,
const
double
[3],
double
*));
112
virtual
void
GetInterpolationFunc
(
113
void
(**floatfunc)(
114
vtkInterpolationInfo
*,
const
float
[3],
float
*));
116
118
119
virtual
void
GetRowInterpolationFunc
(
120
void
(**doublefunc)(
121
vtkInterpolationWeights
*,
int
,
int
,
int
,
double
*,
int
));
122
virtual
void
GetRowInterpolationFunc
(
123
void
(**floatfunc)(
124
vtkInterpolationWeights
*,
int
,
int
,
int
,
float
*,
int
));
126
128
virtual
void
BuildKernelLookupTable();
129
131
virtual
void
FreeKernelLookupTable();
132
133
int
SplineDegree
;
134
float
*
KernelLookupTable
;
135
136
private
:
137
vtkImageBSplineInterpolator
(
const
vtkImageBSplineInterpolator
&);
// Not implemented.
138
void
operator=(
const
vtkImageBSplineInterpolator
&);
// Not implemented.
139
};
140
141
#endif
Generated on Tue Jan 8 2013 05:45:25 for VTK by
1.8.1.2