Shapeworks Studio
2.1
Shape analysis software suite
|
#include <itkParticleShapeStatistics.h>
Public Member Functions | |
itkStaticConstMacro (Dimension, unsigned int, VDimension) | |
int | ImportPoints (std::vector< vnl_vector< double > > points) |
int | ReadPointFiles (const char *fname) |
int | ReloadPointFiles () |
int | WriteCSVFile (const char *s) |
int | WriteCSVFile (const std::string &s) |
int | WriteCSVFile2 (const char *s) |
int | WriteCSVFile2 (const std::string &s) |
int | ComputeModes () |
int | PrincipalComponentProjections () |
int | FisherLinearDiscriminant (unsigned int) |
int | SampleSize () const |
int | Group1SampleSize () const |
int | Group2SampleSize () const |
int | NumberOfDimensions () const |
int | GroupID (unsigned int i) const |
const std::vector< int > & | GroupID () const |
const vnl_matrix< double > & | Eigenvectors () const |
const vnl_vector< double > & | Eigenvalues () const |
const vnl_vector< double > & | Mean () const |
const vnl_vector< double > & | Group1Mean () const |
const vnl_vector< double > & | Group2Mean () const |
const vnl_vector< double > & | NormalizedGroupDifference () const |
const vnl_vector< double > & | GroupDifference () const |
int | ComputeMedianShape (const int) |
double | L1Norm (unsigned int a, unsigned int b) |
const vnl_matrix< double > & | PCALoadings () const |
const vnl_vector< double > & | FishersLDA () const |
const vnl_matrix< double > & | ShapeMatrix () const |
const vnl_vector< double > & | Shape (unsigned int i) const |
int | SimpleLinearRegression (const std::vector< double > &y, const std::vector< double > &x, double &a, double &b) const |
This class computes various statistics for a set of correspondence positions and group ids.
Definition at line 38 of file itkParticleShapeStatistics.h.
int ParticleShapeStatistics< VDimension >::ComputeMedianShape | ( | const int | ) |
Returns the median shape for the set of shapes with Group ID equal to the integer argument. For example, ComputeMedianShape(0) returns the median shape for the set of shapes with m_groupIDs == 0. The median shape is defined as the shape with the minimum sum of Euclidean L1 norms to all other shapes in that group. Arguments passed to this function are set to the index number of the median shape for Group A and Group B, respectively.
int ParticleShapeStatistics< VDimension >::ComputeModes | ( | ) |
Computes PCA modes from the set of correspondence mode positions. Requires that ReadPointFiles be called first.
|
inline |
Returns the eigenvectors/values.
Definition at line 96 of file itkParticleShapeStatistics.h.
int ParticleShapeStatistics< VDimension >::FisherLinearDiscriminant | ( | unsigned | int | ) |
Computes fishers linear discriminant line for best group separation.
|
inline |
Returns the Fisher linear discriminant
Definition at line 132 of file itkParticleShapeStatistics.h.
|
inline |
Returns the group ids
Definition at line 90 of file itkParticleShapeStatistics.h.
int ParticleShapeStatistics< VDimension >::ImportPoints | ( | std::vector< vnl_vector< double > > | points | ) |
Loads a set of point files and pre-computes some statistics.
ParticleShapeStatistics< VDimension >::itkStaticConstMacro | ( | Dimension | , |
unsigned | int, | ||
VDimension | |||
) |
Dimensionality of the domain of the particle system.
double ParticleShapeStatistics< VDimension >::L1Norm | ( | unsigned int | a, |
unsigned int | b | ||
) |
Returns the euclidean L1 norm between shape a and b
|
inline |
Returns the mean shape.
Definition at line 102 of file itkParticleShapeStatistics.h.
|
inline |
Returns the number of dimensions (this is number of points times Dimension)
Definition at line 86 of file itkParticleShapeStatistics.h.
|
inline |
Returns the component loadings
Definition at line 128 of file itkParticleShapeStatistics.h.
int ParticleShapeStatistics< VDimension >::PrincipalComponentProjections | ( | ) |
Computes the principal component loadings, or projections onto the principal componenent axes for each of the samples. ComputeModes must be called first.
int ParticleShapeStatistics< VDimension >::ReadPointFiles | ( | const char * | fname | ) |
Loads a set of point files and pre-computes some statistics.
int ParticleShapeStatistics< VDimension >::ReloadPointFiles | ( | ) |
Reloads a set of point files and recomputes some statistics.
|
inline |
Returns the sample size.
Definition at line 78 of file itkParticleShapeStatistics.h.
|
inline |
Returns the shape matrix
Definition at line 136 of file itkParticleShapeStatistics.h.
int ParticleShapeStatistics< VDimension >::SimpleLinearRegression | ( | const std::vector< double > & | y, |
const std::vector< double > & | x, | ||
double & | a, | ||
double & | b | ||
) | const |
Computes a simple linear regression of the first list of values with respect to the second y=a + bx. Returns the estimated parameters a & b. Returns 0 on success and -1 on fail.
int ParticleShapeStatistics< VDimension >::WriteCSVFile | ( | const char * | s | ) |
Writes a text file in comma-separated format. Suitable for reading into excel or R or Matlab for analysis.