matlab 如何求一幅图像的灰度值总和!

2024-11-22 19:16:35
推荐回答(1个)
回答1:

p = imread('000.jpg');
g = rgb2gray(p);
SM = sum(g(:))