Visualization of quality of approximation of X given principal comp. 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. USAGE varargout=pcaVisualize(U, mu, vars, X, [index], [ks], [fname], [show]) INPUTS U - returned by pca.m mu - returned by pca.m vars - returned by pca.m X - Set of images or videos, or a single image or video index - [] controls which element of X to aplply visualization to ks - [] ks values of k for pcaApply (ex. ks=[1 4 8 16]) fname - [] if specified outputs avis show - [1] will display in figure(show) and figure(show+1) OUTPUTS M - [only if X is a movie] movie of xhats (see pcaapply) MDiff - [only if X is a movie] movie of difference images MU - [only if X is a movie] movie of eigenmovies EXAMPLE See also PCA, PCAAPPLY Piotr's Computer Vision Matlab Toolbox Version 2.30 Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com] Licensed under the Simplified BSD License [see external/bsd.txt]

Generated by