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 =========================================================================*/
53 #ifndef vtkPCAAnalysisFilter_h
54 #define vtkPCAAnalysisFilter_h
55 
56 #include "vtkFiltersHybridModule.h" // For export macro
58 
59 class vtkFloatArray;
60 class vtkPointSet;
61 
62 class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
63 {
64  public:
66 
70  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
75  static vtkPCAAnalysisFilter *New();
76 
78 
81  vtkGetObjectMacro(Evals, vtkFloatArray);
83 
97  void GetParameterisedShape(vtkFloatArray *b, vtkPointSet* shape);
98 
109  void GetShapeParameters(vtkPointSet *shape, vtkFloatArray *b, int bsize);
110 
115  int GetModesRequiredFor(double proportion);
116 
117 protected:
119  ~vtkPCAAnalysisFilter() override;
120 
125 
126 private:
128  void operator=(const vtkPCAAnalysisFilter&) = delete;
129 
130  // Eigenvalues
131  vtkFloatArray *Evals;
132 
133  // Matrix where each column is an eigenvector
134  double **evecMat2;
135 
136  // The mean shape in a vector
137  double *meanshape;
138 };
139 
140 #endif
141 
142 
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:42
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiBlockDataSetAlgorithm * New()
Performs principal component analysis of a set of aligned pointsets.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.