pca_visualize

PURPOSE ^

Visualization of quality of approximation of X given principal components.

SYNOPSIS ^

function varargout = pca_visualize( U, mu, variances, X, index, ks, filename, show )

DESCRIPTION ^

 Visualization of quality of approximation of X given principal components.

 X can either represent a single element (a single image or video), or a set of elements.
 In the latter case, index controls which element of X to apply visualization to, if
 unspecified it is chosen randomly.

 INPUTS
   U           - [returned by pca] -- see pca
   mu          - [returned by pca] -- see pca
   variances   - [returned by pca] -- see pca
   X           - Set of images or videos, or a single image or video
   index       - [optional] If X is a set of images or videos, controls
               - which image or video to apply visualization to
   ks          - [optional] ks values of k for pca_apply (ex. ks=[1 4 8 16])
   filename    - [optional] if specified outputs avis
   show        - [optional] will display results in figure(show) and figure(show+1)

 OUTPUTS
   M       - [only if X ia a movie] movie of xhats (see pcaapply)
   MDiff   - [only if X ia a movie] movie of difference images
   MU      - [only if X ia a movie] movie of eigenmovies

 DATESTAMP
   29-Nov-2005  2:00pm
 
 See also PCA, PCA_APPLY

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003