2012年3月9日 - 我只做了一部分,希望能帮到你。 代码: I=imread('mingpian.jpg'); I1=rgb2gray(I);%转换成灰度图像. Imax=double(max(max(I1)));%返回最大值
zhidao.baidu.com