TPS Class Reference

Thin Plate Spline. More...

#include <tps.h>

List of all members.

Public Member Functions

 TPS (double **reference=0, double **target=0, int landmarks=0, int dimensions=0)
virtual ~TPS ()
 Destructor.
void LoadData (double **reference, double **target, int landmarks=0, int dimensions=0)
void PerformTPS ()
 Perform the actual Thin Plate Spline.
void GetReference (Matrix< double > *ref)
void GetTarget (Matrix< double > *target)
void SetReference (double **ref)
void SetTarget (double **target)
void WarpPoint (double *point, vector< double > *wpoint)
void WarpPoints (double **points, Matrix< double > *wpoints, int n)
void WarpPoints (double *points, Matrix< double > *wpoints, int n)
int GetNumberOfLandmarks ()
int GetNumberOfDimensions ()
double GetBendingEnergy ()
void GetBendingEnergyMatrix (Matrix< double > *BE)
bool IsCalculated ()


Detailed Description

Thin Plate Spline.

Constructor & Destructor Documentation

TPS::TPS ( double **  reference = 0,
double **  target = 0,
int  landmarks = 0,
int  dimensions = 0 
)

Constructor

Parameters:
reference the landmark coordinates for the reference
target the landmark coordinates for the target
landmarks number of landmarks
dimensions number of dimensions


Member Function Documentation

double TPS::GetBendingEnergy (  ) 

Get bending energy

Returns:
the bending energy

void TPS::GetBendingEnergyMatrix ( Matrix< double > *  BE  ) 

Get bending energy matrix

Returns:
the bending energy matrix

int TPS::GetNumberOfDimensions (  ) 

Get number of dimensions

Returns:
the number of dimensions

int TPS::GetNumberOfLandmarks (  ) 

Get number of landmarks

Returns:
the number of landmarks

void TPS::GetReference ( Matrix< double > *  ref  ) 

Get reference

Returns:
the coordinates of the reference form/shape.

void TPS::GetTarget ( Matrix< double > *  target  ) 

Get target

Returns:
the coordinates of the target form/shape.

bool TPS::IsCalculated (  ) 

Has TPS been performed on the loaded object

Returns:
true if a TPS calculation has been performed

void TPS::LoadData ( double **  reference,
double **  target,
int  landmarks = 0,
int  dimensions = 0 
)

Load data

Parameters:
reference the landmark coordinates for the reference
target the landmark coordinates for the target
landmarks number of landmarks
dimensions number of dimensions

void TPS::SetReference ( double **  ref  ) 

Set reference

Parameters:
ref the coordinates of the reference form/shape.

void TPS::SetTarget ( double **  target  ) 

Set target

Parameters:
target the coordinates of the target form/shape.

void TPS::WarpPoint ( double *  point,
vector< double > *  wpoint 
)

Warps one point using the previously calculated spline

Parameters:
point the point to be warped
wpoint the warped point

void TPS::WarpPoints ( double *  points,
Matrix< double > *  wpoints,
int  n 
)

Warps a list of points using the previously calculated spline

Parameters:
points the points to be warped
wpoints the warped points
n number of points

void TPS::WarpPoints ( double **  points,
Matrix< double > *  wpoints,
int  n 
)

Warps a list of points using the previously calculated spline

Parameters:
points the points to be warped
wpoints the warped points
n number of points


The documentation for this class was generated from the following files:

Generated on Mon Jun 29 08:29:35 2009 for GMM for EVAN Toolkit by  doxygen 1.5.8