VTK  9.3.1
vtkPCAAnalysisFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
41 #ifndef vtkPCAAnalysisFilter_h
42 #define vtkPCAAnalysisFilter_h
43 
44 #include "vtkFiltersHybridModule.h" // For export macro
46 
47 VTK_ABI_NAMESPACE_BEGIN
48 class vtkFloatArray;
49 class vtkPointSet;
50 
51 class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
52 {
53 public:
55 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
64  static vtkPCAAnalysisFilter* New();
65 
67 
70  vtkGetObjectMacro(Evals, vtkFloatArray);
72 
86  void GetParameterisedShape(vtkFloatArray* b, vtkPointSet* shape);
87 
98  void GetShapeParameters(vtkPointSet* shape, vtkFloatArray* b, int bsize);
99 
104  int GetModesRequiredFor(double proportion);
105 
106 protected:
108  ~vtkPCAAnalysisFilter() override;
109 
114 
115 private:
117  void operator=(const vtkPCAAnalysisFilter&) = delete;
118 
119  // Eigenvalues
120  vtkFloatArray* Evals;
121 
122  // Matrix where each column is an eigenvector
123  double** evecMat2;
124 
125  // The mean shape in a vector
126  double* meanshape;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:30
concrete class for storing a set of points
Definition: vtkPointSet.h:58
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:28
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.