Principal Component Analysis

Hi Folks

I would like to carry out a PCA on images. This requires collection of image stats including eigenvalues and eigenvectors. Would be the basis of a decorrelation stretch (reverse transformation necessary).

Can anyone help out an aged EO scientist (worked with Landsat MSS! and FORTRAN). javascript really new to me.

Many thanks
Andrew