MATLAB: How to calculate intensity statistical features of gray scale images in MATLAB

image momentsImage Processing Toolbox

Please help me how to calculate first order intensity statistics features of gray scale images in MATLAB Thanks

Best Answer

Try these:
meanGrayLevel = mean2(grayImage)
stdDev = std2(grayImage)
v = var(grayImage(:))