Functions
contrib/brl/bbas/imesh/algo/imesh_pca.cxx File Reference
#include "imesh_pca.h"
#include <imesh/imesh_fileio.h>
#include <vnl/vnl_vector.h>
#include <vnl/algo/vnl_svd.h>
#include <vcl_fstream.h>
#include <vcl_sstream.h>
#include <vcl_cassert.h>

Go to the source code of this file.

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 > &svals, const vnl_matrix< double > &vars)
 Write a PCA file.

Detailed Description

Definition in file imesh_pca.cxx.


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.

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 > &  svals,
const vnl_matrix< double > &  vars 
)

Write a PCA file.

Definition at line 358 of file imesh_pca.cxx.