How can I write this summation equation in matlab ? N is the number of pixel in the image
Prashant Kumar answered .
2025-11-20
Assuming C,µ are vectocrs of the length number of pixels in the image(N)
sigma = (1/N)*sum(C.^2-mu.^2);