Functions
contrib/mul/msm/msm_shape_model_builder.cxx File Reference

Object to build a msm_shape_model. More...

#include "msm_shape_model_builder.h"
#include <vcl_iostream.h>
#include <vsl/vsl_indent.h>
#include <vsl/vsl_binary_io.h>
#include <vnl/io/vnl_io_vector.h>
#include <vnl/io/vnl_io_matrix.h>
#include <vcl_cstdlib.h>
#include <mbl/mbl_data_array_wrapper.h>
#include <mcal/mcal_pca.h>
#include <mcal/mcal_extract_mode.h>
#include <mbl/mbl_exception.h>

Go to the source code of this file.

Functions

void msm_elements_from_pts_used (const vcl_vector< vcl_vector< unsigned > > &pts_used, vcl_vector< vcl_vector< unsigned > > &used)
 Each point p controls two elements 2p,2p+1.
void msm_load_shapes (const vcl_string &points_dir, const vcl_vector< vcl_string > &filenames, vcl_vector< msm_points > &shapes)
 Loads all shapes from points_dir/filenames[i].
void vsl_b_write (vsl_b_ostream &bfs, const msm_shape_model_builder &b)
 Binary file stream output operator for class reference.
void vsl_b_read (vsl_b_istream &bfs, msm_shape_model_builder &b)
 Binary file stream input operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const msm_shape_model_builder &b)
 Stream output operator for class reference.
void vsl_print_summary (vcl_ostream &os, const msm_shape_model_builder &b)
 Stream output operator for class reference.

Detailed Description

Object to build a msm_shape_model.

Author:
Tim Cootes

Definition in file msm_shape_model_builder.cxx.


Function Documentation

void msm_elements_from_pts_used ( const vcl_vector< vcl_vector< unsigned > > &  pts_used,
vcl_vector< vcl_vector< unsigned > > &  used 
) [inline]

Each point p controls two elements 2p,2p+1.

Definition at line 97 of file msm_shape_model_builder.cxx.

void msm_load_shapes ( const vcl_string &  points_dir,
const vcl_vector< vcl_string > &  filenames,
vcl_vector< msm_points > &  shapes 
)

Loads all shapes from points_dir/filenames[i].

Throws mbl_exception_parse_error if fails.

Definition at line 350 of file msm_shape_model_builder.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const msm_shape_model_builder b 
)

Stream output operator for class reference.

Definition at line 466 of file msm_shape_model_builder.cxx.

void vsl_b_read ( vsl_b_istream bfs,
msm_shape_model_builder b 
)

Binary file stream input operator for class reference.

Definition at line 457 of file msm_shape_model_builder.cxx.

void vsl_b_write ( vsl_b_ostream bfs,
const msm_shape_model_builder b 
)

Binary file stream output operator for class reference.

Definition at line 448 of file msm_shape_model_builder.cxx.

void vsl_print_summary ( vcl_ostream &  os,
const msm_shape_model_builder b 
)

Stream output operator for class reference.

Definition at line 476 of file msm_shape_model_builder.cxx.