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 
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:
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 
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:41
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkMultiBlockDataSetAlgorithm * New()
Performs principal component analysis of a set of aligned pointsets.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSHYBRID_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.