Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Calculating kurtosis and skewness using moment function

Asked by Sajid Khan

Sajid Khan (view profile)

on 27 May 2013

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 Comments

Sajid Khan

Sajid Khan (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

on 27 May 2013

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 Comments

Image Analyst

Image Analyst (view profile)

Contact us