VTK  9.0.1
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) 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() override;
117 
122 
123 private:
125  void operator=(const vtkPCAAnalysisFilter&) = delete;
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
vtkPCAAnalysisFilter
Performs principal component analysis of a set of aligned pointsets.
Definition: vtkPCAAnalysisFilter.h:59
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkMultiBlockDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:89
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMultiBlockDataSetAlgorithm.h
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32