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)
0 个评论
采纳的回答
更多回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!