我想在 Octave / Matlab 中保存和加载一组图像。FAQ 中给出的一般说明似乎不适用于保存和加载(octave 3.2.4,Ubuntu 12.04)。
即,使用bg_header_mwlogo_notag.jpg
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
如何在一个文件中保存和加载多张图像?