Public Member Functions | Protected Attributes
msm_ref_shape_model Class Reference

Contains mean/modes etc of a shape model in a reference frame. More...

#include <msm_ref_shape_model.h>

Inheritance diagram for msm_ref_shape_model:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 msm_ref_shape_model ()
 ~msm_ref_shape_model ()
void set (const msm_points &mean, const vnl_matrix< double > &modes, const vnl_vector< double > &mode_var, const msm_param_limiter &param_limiter)
 Set up model.
const vnl_vector< double > & mean () const
 Mean of shape model as vector.
double ref_mean_points_scale () const
 Scale of mean points in ref. frame (=mean_.scale()).
const msm_pointsmean_points () const
 Mean of shape model as points.
const vnl_matrix< double > & modes () const
 Modes of variation.
const vnl_vector< double > & mode_var () const
 Variance for each mode.
const msm_param_limiterparam_limiter () const
 Current object which limits parameters.
msm_param_limiterparam_limiter ()
 Current object which limits parameters (non-const).
unsigned size () const
 Number of points.
unsigned n_modes () const
 Number of modes.
short version_no () const
 Version number for I/O.
vcl_string is_a () const
 Name of the class.
void print_summary (vcl_ostream &os) const
 Print class to os.
void b_write (vsl_b_ostream &bfs) const
 Save class to binary file stream.
void b_read (vsl_b_istream &bfs)
 Load class from binary file stream.
bool operator== (const msm_ref_shape_model &points) const
 Equality test.

Protected Attributes

msm_points mean_
 Mean of shape model.
double mean_points_scale_
 Scale of mean points (=mean_.scale()).
vnl_matrix< double > modes_
 Modes of variation.
vnl_vector< double > mode_var_
 Variance for each mode.
mbl_cloneable_ptr
< msm_param_limiter
param_limiter_
 Default choice of parameter limiter.

Detailed Description

Contains mean/modes etc of a shape model in a reference frame.

Container to hold the components of a statistical shape model in the reference frame. Uses a linear model the shape variation. This has no information about the global transformation (msm_aligner) - see msm_shape_model for that.

The associated msm_ref_shape_instance class contains functions to synthesize and match to shapes using this model.

Definition at line 28 of file msm_ref_shape_model.h.


Constructor & Destructor Documentation

msm_ref_shape_model::msm_ref_shape_model ( )

Definition at line 20 of file msm_ref_shape_model.cxx.

msm_ref_shape_model::~msm_ref_shape_model ( )

Definition at line 29 of file msm_ref_shape_model.cxx.


Member Function Documentation

void msm_ref_shape_model::b_read ( vsl_b_istream bfs)

Load class from binary file stream.

Reimplemented in msm_shape_model.

Definition at line 128 of file msm_ref_shape_model.cxx.

void msm_ref_shape_model::b_write ( vsl_b_ostream bfs) const

Save class to binary file stream.

Reimplemented in msm_shape_model.

Definition at line 114 of file msm_ref_shape_model.cxx.

vcl_string msm_ref_shape_model::is_a ( ) const

Name of the class.

Reimplemented in msm_shape_model.

Definition at line 88 of file msm_ref_shape_model.cxx.

const vnl_vector<double>& msm_ref_shape_model::mean ( ) const [inline]

Mean of shape model as vector.

Definition at line 61 of file msm_ref_shape_model.h.

const msm_points& msm_ref_shape_model::mean_points ( ) const [inline]

Mean of shape model as points.

Definition at line 68 of file msm_ref_shape_model.h.

const vnl_vector<double>& msm_ref_shape_model::mode_var ( ) const [inline]

Variance for each mode.

Definition at line 74 of file msm_ref_shape_model.h.

const vnl_matrix<double>& msm_ref_shape_model::modes ( ) const [inline]

Modes of variation.

Definition at line 71 of file msm_ref_shape_model.h.

unsigned msm_ref_shape_model::n_modes ( ) const [inline]

Number of modes.

Definition at line 88 of file msm_ref_shape_model.h.

bool msm_ref_shape_model::operator== ( const msm_ref_shape_model points) const

Equality test.

Definition at line 54 of file msm_ref_shape_model.cxx.

const msm_param_limiter& msm_ref_shape_model::param_limiter ( ) const [inline]

Current object which limits parameters.

Definition at line 77 of file msm_ref_shape_model.h.

msm_param_limiter& msm_ref_shape_model::param_limiter ( ) [inline]

Current object which limits parameters (non-const).

Definition at line 81 of file msm_ref_shape_model.h.

void msm_ref_shape_model::print_summary ( vcl_ostream &  os) const

Print class to os.

Reimplemented in msm_shape_model.

Definition at line 98 of file msm_ref_shape_model.cxx.

double msm_ref_shape_model::ref_mean_points_scale ( ) const [inline]

Scale of mean points in ref. frame (=mean_.scale()).

Definition at line 64 of file msm_ref_shape_model.h.

void msm_ref_shape_model::set ( const msm_points mean,
const vnl_matrix< double > &  modes,
const vnl_vector< double > &  mode_var,
const msm_param_limiter param_limiter 
)

Set up model.

Definition at line 34 of file msm_ref_shape_model.cxx.

unsigned msm_ref_shape_model::size ( ) const [inline]

Number of points.

Definition at line 85 of file msm_ref_shape_model.h.

short msm_ref_shape_model::version_no ( ) const

Version number for I/O.

Reimplemented in msm_shape_model.

Definition at line 79 of file msm_ref_shape_model.cxx.


Member Data Documentation

Mean of shape model.

Definition at line 32 of file msm_ref_shape_model.h.

Scale of mean points (=mean_.scale()).

Definition at line 35 of file msm_ref_shape_model.h.

Variance for each mode.

Definition at line 41 of file msm_ref_shape_model.h.

Modes of variation.

Definition at line 38 of file msm_ref_shape_model.h.

Default choice of parameter limiter.

Definition at line 44 of file msm_ref_shape_model.h.


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