MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]怎样用图片名作参数 (https://www.labfans.com/bbs/showthread.php?t=3799)

mydream1899 2008-07-03 15:15

[求助]怎样用图片名作参数
 
我想把读入图像 、显示图像做成一个函数,图片名title作为参数

I=imread(‘title’);
imshow(I);
怎样把上两行编成一个函数test(title) title是图片名 参数

wbgsue 2008-07-09 09:44

作个。m文件
function readandshow(title)

I=imread(title);
imshow(I);


可否?


所有时间均为北京时间。现在的时间是 06:33

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