I would imagine that average grey level is quite simple (take the average).

I suppose the third moment is derived once you know the mean ( is it the cube root of the sum of absolute values of the cubes of the differences of each element from the mean? )

-- sorry, I would write it as a formula rather than words if I was fluent in the code.

I don't know the formula for other variables.