VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Hybrid
vtkPCAAnalysisFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPCAAnalysisFilter.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
=========================================================================*/
52
#ifndef __vtkPCAAnalysisFilter_h
53
#define __vtkPCAAnalysisFilter_h
54
55
#include "vtkFiltersHybridModule.h"
// For export macro
56
#include "
vtkMultiBlockDataSetAlgorithm.h
"
57
58
class
vtkFloatArray
;
59
class
vtkPointSet
;
60
61
class
VTKFILTERSHYBRID_EXPORT
vtkPCAAnalysisFilter
:
public
vtkMultiBlockDataSetAlgorithm
62
{
63
public
:
64
vtkTypeMacro(
vtkPCAAnalysisFilter
,
vtkMultiBlockDataSetAlgorithm
);
65
67
void
PrintSelf
(ostream& os,
vtkIndent
indent);
68
70
static
vtkPCAAnalysisFilter
*
New
();
71
73
74
vtkGetObjectMacro(Evals,
vtkFloatArray
);
76
83
void
GetParameterisedShape(
vtkFloatArray
*b,
vtkPointSet
* shape);
84
90
void
GetShapeParameters(
vtkPointSet
*shape,
vtkFloatArray
*b,
int
bsize);
91
94
int
GetModesRequiredFor(
double
proportion);
95
96
protected
:
97
vtkPCAAnalysisFilter
();
98
~
vtkPCAAnalysisFilter
();
99
101
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
102
103
private
:
104
vtkPCAAnalysisFilter
(
const
vtkPCAAnalysisFilter
&);
// Not implemented.
105
void
operator=(
const
vtkPCAAnalysisFilter
&);
// Not implemented.
106
107
// Eigenvalues
108
vtkFloatArray
*Evals;
109
110
// Matrix where each column is an eigenvector
111
double
**evecMat2;
112
113
// The mean shape in a vector
114
double
*meanshape;
115
};
116
117
#endif
118
119
Generated on Thu May 24 2012 22:22:22 for VTK by
1.8.1