MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]对一幅图像进行50%左右采样 (https://www.labfans.com/bbs/showthread.php?t=2794)

xuexizhe 2008-05-04 11:20

[求助]对一幅图像进行50%左右采样
 
我相对一幅图像进行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'.


所有时间均为北京时间。现在的时间是 16:49

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.