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

37 次查看(过去 30 天)
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)

采纳的回答

KSSV
KSSV 2019-6-10
  6 个评论

请先登录,再进行评论。

更多回答(1 个)

Image Analyst
Image Analyst 2019-6-11
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!

Translated by