VTK  9.2.6
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
59class vtkFloatArray;
60class vtkPointSet;
61
62class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
63{
64public:
66
70 void PrintSelf(ostream& os, vtkIndent indent) override;
71
76
78
81 vtkGetObjectMacro(Evals, vtkFloatArray);
83
98
109 void GetShapeParameters(vtkPointSet* shape, vtkFloatArray* b, int bsize);
110
115 int GetModesRequiredFor(double proportion);
116
117protected:
120
125
126private:
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
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
a simple class to control print indentation
Definition: vtkIndent.h:40
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:70