How to find the Statistical Properties(Mean, Standard Deviation, Skwness and Kurtosis) of image?

36 views (last 30 days)
I = imread('C:\Users\Annalakshmi\Desktop\file\bse_gray_250.png');
offsets0 = [zeros(40,1) (1:40)'];
glcms = graycomatrix(I,'Offset',offsets0)
glcm = graycomatrix(I,'Offset',[2 0;0 2])
stats = graycoprops(glcm)

Accepted Answer

KSSV
KSSV on 10 Jun 2019
  6 Comments

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 11 Jun 2019
See my attached demo for find the central spatial moments, if that's what you want.
KSSV's solution gives you the radiometric stats, not spatial stats. For example, the first moment (mean) for intensity will give you the mean gray level whereas for spatial it will give you the location of the centroid. Spatial moments can also give you things like moment of inertia, etc. Not sure which moments you want.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!