【发布时间】:2012-06-13 23:46:51
【问题描述】:
我想在 Octave / Matlab 中保存和加载一组图像。 in the FAQ 给出的一般说明似乎不适用于保存和加载(octave 3.2.4,Ubuntu 12.04)。
images = cell(1, 1);
for i=1
images{i} = imread('/tmp/bg_header_mwlogo_notag.jpg');
end
save images;
load images;
给予:
error: load: failed to load matrix constant
error: load: trouble reading ascii file `'
error: load: reading file
error: load: cell array element had unexpected name
error: load: failed to load cell element
error: load: trouble reading ascii file `images'
error: load: reading file images
如何在一个文件中保存和加载多张图片?
【问题讨论】:
-
我复制了你的测试,它没有给我任何问题。与您的设置相同。
-
@LucaGeretti:谢谢,我已将代码更改为应该始终提供错误消息的内容。