VTK
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
57 
58 class vtkFloatArray;
59 class vtkPointSet;
60 
62 {
63  public:
65 
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
71 
73 
76 
84 
90  void GetShapeParameters(vtkPointSet *shape, vtkFloatArray *b, int bsize);
91 
94  int GetModesRequiredFor(double proportion);
95 
96 protected:
99 
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 
vtkPCAAnalysisFilter::GetShapeParameters
void GetShapeParameters(vtkPointSet *shape, vtkFloatArray *b, int bsize)
vtkPCAAnalysisFilter::GetModesRequiredFor
int GetModesRequiredFor(double proportion)
vtkPCAAnalysisFilter
Performs principal component analysis of a set of aligned pointsets.
Definition: vtkPCAAnalysisFilter.h:62
vtkPCAAnalysisFilter::~vtkPCAAnalysisFilter
~vtkPCAAnalysisFilter()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPCAAnalysisFilter::GetParameterisedShape
void GetParameterisedShape(vtkFloatArray *b, vtkPointSet *shape)
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPCAAnalysisFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTKFILTERSHYBRID_EXPORT
#define VTKFILTERSHYBRID_EXPORT
Definition: vtkFiltersHybridModule.h:15
vtkPCAAnalysisFilter::vtkPCAAnalysisFilter
vtkPCAAnalysisFilter()
vtkPCAAnalysisFilter::New
static vtkPCAAnalysisFilter * New()
vtkPCAAnalysisFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiBlockDataSetAlgorithm.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkFiltersHybridModule.h
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:45
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32