完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
批量读取指定文件夹下的图片128*128 pathname = uigetdir; img_path_list = dir(strcat(pathname,'*.bmp')); img_num = length(img_path_list); imagedata = []; if img_num >0 for j = 1:img_num img_name = img_path_list(j).name; temp = imread(strcat(pathname, '/', img_name)); temp = double(temp(:)); imagedata = [imagedata, temp]; end end col_of_data = size(imagedata,2); 这段代码写上去为什么找不到文件
|
|
相关推荐 |
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 05:51 , Processed in 0.507352 second(s), Total 62, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号