anyview

 

实验平台:matlab R2010Rb

 读取C:\Users\KCl\Documents\MATLAB\SRCNN\Set5文件夹下所有bmp文件,并存储到im字典中

clear all
clc

im = {};
dis = dir(\'C:\Users\KCl\Documents\MATLAB\SRCNN\Set5\*.bmp\');
for i = 1:length(dis)
path = strcat(\'C:\Users\KCl\Documents\MATLAB\SRCNN\Set5\\',dis(i).name);
im{i} =imread(path); %%将读取
imshow(im{i}) %%为了同时显示多幅图片,不加figure的话只会显示一副图片,因为读入的第i副图片会被第i+1副图片覆盖 
end

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-12-04
  • 2021-08-04
  • 2021-08-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案