图像均值和峰度-Matlab

时间:2019-07-13 16:15:41

标签: matlab

为什么使用矩阵或直方图的图像均值和峰度结果存在差异?正确的方法是什么?

代码:

rgbImg = imread('peppers.png');
grayImg = rgb2gray(rgbImg);
imgHisto=imhist(grayImg);
meanGrayImg = mean(grayImg(:));
meanImgHisto = mean(imgHisto);
kurtosisGrayImg = kurtosis(grayImg(:));
kurtosisImgHisto = kurtosis(imgHisto);

0 个答案:

没有答案