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 =========================================================================*/
50 #ifndef vtkPCAAnalysisFilter_h
51 #define vtkPCAAnalysisFilter_h
52 
53 #include "vtkFiltersHybridModule.h" // For export macro
55 
56 class vtkFloatArray;
57 class vtkPointSet;
58 
59 class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
60 {
61  public:
63 
67  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
68 
72  static vtkPCAAnalysisFilter *New();
73 
75 
78  vtkGetObjectMacro(Evals, vtkFloatArray);
80 
94  void GetParameterisedShape(vtkFloatArray *b, vtkPointSet* shape);
95 
106  void GetShapeParameters(vtkPointSet *shape, vtkFloatArray *b, int bsize);
107 
112  int GetModesRequiredFor(double proportion);
113 
114 protected:
116  ~vtkPCAAnalysisFilter() VTK_OVERRIDE;
117 
121  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
122 
123 private:
124  vtkPCAAnalysisFilter(const vtkPCAAnalysisFilter&) VTK_DELETE_FUNCTION;
125  void operator=(const vtkPCAAnalysisFilter&) VTK_DELETE_FUNCTION;
126 
127  // Eigenvalues
128  vtkFloatArray *Evals;
129 
130  // Matrix where each column is an eigenvector
131  double **evecMat2;
132 
133  // The mean shape in a vector
134  double *meanshape;
135 };
136 
137 #endif
138 
139 
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
static vtkMultiBlockDataSetAlgorithm * New()
Performs principal component analysis of a set of aligned pointsets.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.