麻烦大家再帮我看看,我的程序是这样的:
data=('C:\Documents and Settings\Administrator\桌面\test12.jpg')
I1=imread(data);
level1=graythresh(I1);
A1=im2bw(I1,level1);
subplot(2,4,1),imshow(I1);
title('原图像');
subplot(2,4,5),imshow(A1);
title('原图像的二值图');
[M N]=size(I1);
p=0;q=0;
[X,Y]=meshgrid(1:M,1:N);
Z=X.^p.*Y.^q.*I1;
m_00=sum(Z(:))
这个报错完全不懂
麻烦大家指点一下
??? Error using ==> .*
Function '.*' is not defined for values of class 'uint8'.
Error in ==> C:\MATLAB6p5\work\absent.m
On line 12 ==> Z=X.^p.*Y.^q.*I1; |