Calculating kurtosis and skewness using moment function
1 回表示 (過去 30 日間)
古いコメントを表示
Hi Everyone,
I am trying to calculate skewness and kurtosis of an image. Kurtosis is 4th order moment while skewness is 3rd order moment whose formulas are given below:
KURT = E〖(x-µ)〗^4/σ^4
SKEW = E〖(x-µ)〗^3/σ^3
I am using matlab function moment as below
Kurt = moment(image(:),4)
Skew = moment(image(:),3)
Am I doing it in a correct way?
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 5 月 27 日
I think you need to subtract the mean from the image. It's the 3rd and 4th central moment. By the way, don't name a variable "image" since it's the name of a built-in function.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!