登录论坛

查看完整版本 : [求助对图像进行采样的程序请教


xuexizhe
2008-05-04, 11:17
我相对一幅图像进行50%左右采样,我有一个程序,但运行时显示出错,请高手帮忙帮忙看一下:
I=imread ('trees.tif');
Y=uint8 (ceil (2*rand (size (I))-1)).*I;
显示错误为:??? Error using ==> .*
Function '.*' is not defined for values of class 'uint8'.