clustermontage

PURPOSE ^

Used for visualization of clusters of images and videos.

SYNOPSIS ^

function XC = clustermontage( X, IDX, nvals, pad )

DESCRIPTION ^

 Used for visualization of clusters of images and videos.  

 To display only a subset of clusters, given in a vector cs, use IDXb:
   IDXb = zeros(size(IDX)); for i=1:length(cs) IDXb(IDX==cs(i))=i; end;

 To save created movie:
   movie2avi(M, ['example.avi'], 'compression','Cinepak');

 INPUTS
   X       - MxNxR array of images or MxNxTxR array of videos
   IDX     - cluster membership (Rx1 integer vector) [see kmeans2.m]
   nvals   - max number of instances to show of each cluster
   pad     - pads each cluster w blanks so it has exactly nvals elements, if necessary

 OUTPUTS
   XC       - if pad==1
              M x N x nvals x nclusters if X contains images
              M x N x T x nvals x nclusters if X contains videos
            - if pad==0
              nclusters cell of M x N x c arrays if X contains images
              nclusters cell of M x N x T x c arrays if X contains videos

 EXAMPLE

 DATESTAMP
   29-Nov-2005  10:00am

 See also KMEANS2, MONTAGES, MAKEMOVIESETS, CELL2ARRAY

CROSS-REFERENCE INFORMATION ^

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