VTK  9.3.20240420
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
47VTK_ABI_NAMESPACE_BEGIN
48class vtkFloatArray;
49class vtkPointSet;
50
51class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
52{
53public:
55
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
65
67
70 vtkGetObjectMacro(Evals, vtkFloatArray);
72
87
98 void GetShapeParameters(vtkPointSet* shape, vtkFloatArray* b, int bsize);
99
104 int GetModesRequiredFor(double proportion);
105
106protected:
109
114
115private:
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
129VTK_ABI_NAMESPACE_END
130#endif
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Performs principal component analysis of a set of aligned pointsets.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Usual data generation method.
void GetParameterisedShape(vtkFloatArray *b, vtkPointSet *shape)
Fills the shape with:
void PrintSelf(ostream &os, vtkIndent indent) override
Prints information about the state of the filter.
int GetModesRequiredFor(double proportion)
Retrieve how many modes are necessary to model the given proportion of the variation.
void GetShapeParameters(vtkPointSet *shape, vtkFloatArray *b, int bsize)
Return the bsize parameters b that best model the given shape (in standard deviations).
static vtkPCAAnalysisFilter * New()
Creates with similarity transform.
~vtkPCAAnalysisFilter() override
concrete class for storing a set of points
Definition vtkPointSet.h:98