【发布时间】:2013-08-12 15:40:24
【问题描述】:
我试图让用户在 MATLAB 中使用以下命令从文件夹中选择图像:
uigetfile('*.tiff','Select the image files')
我希望将图像写入带有n 元素的数组或矩阵(n 是图像选择循环中选择的图像数量)。
我尝试了多种不同的方法,因此我们将不胜感激。 非常感谢。
这是我最近的尝试:
function imagereader
x={};
i=1;
response = 1;
while response ~= 0
[FileName] = uigetfile('*.tiff','Select the image files')
x{i} = FileName;
choice = questdlg('Do you wish to select more images?','Image selection','Yes','No','No');
switch choice
case 'Yes'
response = 1;
i+1;
case 'No'
response = 0;
end
end
while i >= 1
image(x{i})
i-1;
end
【问题讨论】:
-
你尝试了哪些不同的方法?
标签: image matlab image-processing