How can I calculate color moments with skimage? measure.moments provides some moments but I don't know how to calculate mean, variance and skewness in terms of them. For example I can use M00 returned from measure.moments and with dividing it by number of pixels I can obtain mean, but I'm not sure it's the right way.
You can compute sample statistics for the pixels in an image using standard NumPy functions and function in the SciPy statistics package:
numpy.mean
for the mean,numpy.var
for the variance,scipy.stats.skew
for the skewness, orscipy.stats.moment
for arbitrary central moments.You will have to compute these per channel.