我从浏览器中选择了多个框架。它在视频隐写术中完美地作为我的项目的封面文件。如何在Matlab中保存多个图像?
将文本嵌入到封面帧(多帧)后,我想将这些帧保存为隐藏图像,但在我的情况下,它只保存最后一张图像。
下面是代码:
[fn, pn,fi] = uigetfile('*.jpg*','Select the Cover Image','Multiselect','on');
coln=size(fn);
numberfile=coln;
for i=1:numberfile
fn(i);
entirefile=fullfile(pn,fn{i});
fid=fopen(entirefile);
fclose(fid);
end
I = imread([pn,fn{i}]);
pix=I(:);
J = reshape(pix,size(I));
%till here is working fine
%this code below it problem when I save Stego image it save only last image
[fn, pn] = uiputfile('*.png', 'Save Stego Image');
imwrite(J,[pn,'\',fn],'png');
尝试重新设置和重新格式化您的答案,目前它很不清楚你想要做什么。 – Wolfie