VTK  9.1.0
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
56class vtkFloatArray;
57class vtkPointSet;
58
59class VTKFILTERSHYBRID_EXPORT vtkPCAAnalysisFilter : public vtkMultiBlockDataSetAlgorithm
60{
61public:
63
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
73
75
78 vtkGetObjectMacro(Evals, vtkFloatArray);
80
95
106 void GetShapeParameters(vtkPointSet* shape, vtkFloatArray* b, int bsize);
107
112 int GetModesRequiredFor(double proportion);
113
114protected:
117
122
123private:
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
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:113
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:106