function [I]=Select_image(path_yuv,frames,out_path)%选择前frmes张图片
%path = 'D:\vitual_viewpoint\balloons\depth_balloons_5\depth_balloons_5.yuv';
%dataname = 'data.mat';
%filename=[path dataname];
%data = load(filename);
%fid = fopen(path_yuv,'r');
%frames=3;
%out_path='D:\vitual_viewpoint\balloons\test\';
yuv2rgb(frames,path_yuv,out_path);
I=cell(1,frames);
for i=1:frames
imageName=strcat(out_path,num2str(i,'%02d'),'.jpg');
% imshow(imageName);
I{i} = imread(imageName);
%figure(i),imshow(I{i});
end
% refColor=I{1};
% figure,imshow(refColor),title('asdas');
读取文件夹中的图片|matlab
猜你喜欢
转载自blog.csdn.net/weixin_46096297/article/details/111564756
今日推荐
周排行