Classes | Functions
contrib/brl/bbas/imesh/algo/imesh_pca.h File Reference

Mesh PCA parameterization. More...

#include <imesh/imesh_mesh.h>
#include <vcl_vector.h>
#include <vcl_cassert.h>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
#include <vpgl/vpgl_proj_camera.h>

Go to the source code of this file.

Classes

class  imesh_pca_mesh
 Principal Component Analysis on a set of mesh vertices. More...

Functions

vcl_vector< vnl_matrix< double > > imesh_pca_image_jacobians (const vpgl_proj_camera< double > &camera, const imesh_pca_mesh &mesh)
 Compute the image Jacobians at each vertex for PCA parameters in the result:.
imesh_pca_mesh imesh_read_pca (const vcl_string &mean_file, const vcl_string &pca_file)
 Read a PCA mesh from a mean mesh and a pca file.
bool imesh_read_pca (const vcl_string &pca_file, vnl_vector< double > &mean, vnl_vector< double > &std_devs, vnl_matrix< double > &pc)
 Read a PCA file.
void imesh_write_pca (const vcl_string &mesh_file, const vcl_string &pca_file, const imesh_pca_mesh &pmesh)
 Write the mean mesh and PCA file.
bool imesh_write_pca (const vcl_string &filename, const vnl_vector< double > &mean, const vnl_vector< double > &std_devs, const vnl_matrix< double > &pc)
 Write a PCA file.

Detailed Description

Mesh PCA parameterization.

Author:
Matt Leotta (mleotta@lems.brown.edu)
Date:
June 26, 2008
    Modifications
     <none yet>
   

Definition in file imesh_pca.h.


Function Documentation

vcl_vector<vnl_matrix<double> > imesh_pca_image_jacobians ( const vpgl_proj_camera< double > &  camera,
const imesh_pca_mesh mesh 
)

Compute the image Jacobians at each vertex for PCA parameters in the result:.

Matrix n, row i is the image space derivative at vertex n with respect to the ith pca parameter

Compute the image Jacobians at each vertex for PCA parameters in the result:.

Matrix n, row i is the image space derivative at vertex n with respect to the ith pca parameter

Definition at line 233 of file imesh_pca.cxx.

imesh_pca_mesh imesh_read_pca ( const vcl_string &  mean_file,
const vcl_string &  pca_file 
)

Read a PCA mesh from a mean mesh and a pca file.

Definition at line 269 of file imesh_pca.cxx.

bool imesh_read_pca ( const vcl_string &  pca_file,
vnl_vector< double > &  mean,
vnl_vector< double > &  std_devs,
vnl_matrix< double > &  pc 
)

Read a PCA file.

Definition at line 282 of file imesh_pca.cxx.

void imesh_write_pca ( const vcl_string &  mesh_file,
const vcl_string &  pca_file,
const imesh_pca_mesh pmesh 
)

Write the mean mesh and PCA file.

Definition at line 336 of file imesh_pca.cxx.

bool imesh_write_pca ( const vcl_string &  filename,
const vnl_vector< double > &  mean,
const vnl_vector< double > &  std_devs,
const vnl_matrix< double > &  pc 
)

Write a PCA file.

Definition at line 358 of file imesh_pca.cxx.