From: Prashant sangulgi on
How 2 find covariance of image...
From: Walter Roberson on
Prashant sangulgi wrote:
> How 2 find covariance of image...

cov(double(ImageMatrix))

perhaps?

Though that will really only work for grayscale images. If you have a
true-color or indexed image then you will need to clarify what you want to
take the covariance of: true-color images are 3D and indexed images are 2D but
cannot be properly interpreted without a color table.