From: Prashant sangulgi on
No sir i have taken grayscale image only..... Because iam not getting solution with true color image... Do you have demo code on image fusion using pca... Because that will be very helpfull for me....
From: Walter Roberson on
Prashant sangulgi wrote:
> No sir iam using grayscale image only.... As iam not getting how to get
> the variance by using true color image...

Suppose X is the name of the variable that is storing the true-color image.
Then the variance of that true-color image is

var(double(X(:)))

and the mean of the image is

mean(X(:))

and the standard deviation of the image is

std(double(X(:)))



Now that that's out of the way, go ahead with the rest of your algorithm.