Class for a three-dimensional active shape model. More...
#include <cmtkActiveShapeModel.h>
Public Types | |
typedef SmartPointer < ActiveShapeModel > | SmartPtr |
Smart pointer to active shape model. | |
Public Member Functions | |
unsigned int | GetNumberOfPoints () const |
Get number of points. | |
unsigned int | GetNumberOfModes () const |
Get number of modes. | |
ActiveShapeModel () | |
Default constructor. | |
ActiveShapeModel (CoordinateVector::SmartPtr &mean, DirectionSet::SmartPtr &modes, CoordinateVector::SmartPtr &modeVariances) | |
Construct using given mean and modes. | |
ActiveShapeModel (const Types::Coordinate *const *trainingSet, const unsigned int numberOfSamples, const unsigned int numberOfPoints, const unsigned int numberOfModes) | |
Generative constructor. | |
float | Construct (const Types::Coordinate *const *trainingSet, const unsigned int numberOfSamples, const unsigned int numberOfPoints, const unsigned int numberOfModes) |
Construct model. | |
Types::Coordinate * | Generate (Types::Coordinate *const instance, const Types::Coordinate *modeWeights) const |
Generate a model instance. | |
float | Decompose (const CoordinateVector *input, Types::Coordinate *const weights=NULL) const |
Decompose a vector into mean and modes of this model. | |
Public Attributes | |
unsigned int | NumberOfPoints |
Number of points in this model. | |
CoordinateVector::SmartPtr | Mean |
Point positions of the mean shape. | |
unsigned int | NumberOfModes |
Number of modes of variation in this model. | |
DirectionSet::SmartPtr | Modes |
Delta vectors for the modes of variation. | |
CoordinateVector::SmartPtr | ModeVariances |
Eigenvalue (= variance) associated with each mode. | |
Protected Member Functions | |
void | Allocate (const unsigned int numberOfPoints, const unsigned int numberOfModes) |
Allocate data structures. |
Class for a three-dimensional active shape model.
Definition at line 51 of file cmtkActiveShapeModel.h.
Smart pointer to active shape model.
Reimplemented in cmtk::ActiveDeformationModel< W >.
Definition at line 55 of file cmtkActiveShapeModel.h.
cmtk::ActiveShapeModel::ActiveShapeModel | ( | ) | [inline] |
Default constructor.
Definition at line 79 of file cmtkActiveShapeModel.h.
cmtk::ActiveShapeModel::ActiveShapeModel | ( | const Types::Coordinate *const * | trainingSet, |
const unsigned int | numberOfSamples, | ||
const unsigned int | numberOfPoints, | ||
const unsigned int | numberOfModes | ||
) | [inline] |
Generative constructor.
For a description of the parameters, see the Construct() member function.
Definition at line 89 of file cmtkActiveShapeModel.h.
unsigned int cmtk::ActiveShapeModel::GetNumberOfModes | ( | ) | const [inline] |
Get number of modes.
Definition at line 70 of file cmtkActiveShapeModel.h.
unsigned int cmtk::ActiveShapeModel::GetNumberOfPoints | ( | ) | const [inline] |
Get number of points.
Definition at line 61 of file cmtkActiveShapeModel.h.
Point positions of the mean shape.
Definition at line 64 of file cmtkActiveShapeModel.h.
Delta vectors for the modes of variation.
Definition at line 73 of file cmtkActiveShapeModel.h.
Eigenvalue (= variance) associated with each mode.
Definition at line 76 of file cmtkActiveShapeModel.h.
unsigned int cmtk::ActiveShapeModel::NumberOfModes |
Number of modes of variation in this model.
Definition at line 67 of file cmtkActiveShapeModel.h.
unsigned int cmtk::ActiveShapeModel::NumberOfPoints |
Number of points in this model.
Definition at line 58 of file cmtkActiveShapeModel.h.