Functions
contrib/mul/m23d/m23d_select_basis_views.cxx File Reference

Select a subset most suitable for use as a basis set. More...

#include "m23d_select_basis_views.h"
#include <mbl/mbl_random_n_from_m.h>
#include <vnl/algo/vnl_svd.h>
#include <vcl_iostream.h>
#include <vcl_cstdlib.h>
#include <vcl_algorithm.h>

Go to the source code of this file.

Functions

vcl_vector< unsigned > m23d_select_basis_views (const vnl_matrix< double > &P2D, unsigned n_modes, unsigned n_tries)
 Select a subset most suitable for use as a basis set.
double m23d_evaluate_basis (const vnl_matrix< double > &P2D, const vcl_vector< unsigned > &selected)
 Evaluate quality of a basis set.

Detailed Description

Select a subset most suitable for use as a basis set.

Author:
Tim Cootes

Definition in file m23d_select_basis_views.cxx.


Function Documentation

double m23d_evaluate_basis ( const vnl_matrix< double > &  P2D,
const vcl_vector< unsigned > &  selected 
)

Evaluate quality of a basis set.

Data matrix is 2ns x np (ns= number of samples, np = number of points) Each two rows gives the points in a single view. Form a basis from the pairs of rows defined by selected, and compute a measure of how independent the rows are.

Definition at line 63 of file m23d_select_basis_views.cxx.

vcl_vector<unsigned> m23d_select_basis_views ( const vnl_matrix< double > &  P2D,
unsigned  n_modes,
unsigned  n_tries 
)

Select a subset most suitable for use as a basis set.

Data matrix is 2ns x np (ns= number of samples, np = number of points) Each two rows gives the points in a single view. This returns a list of point indices for views which have most independent points, and are thus suitable for defining the basis.

Definition at line 18 of file m23d_select_basis_views.cxx.