Lea las imágenes en la carpeta | matlab

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');

Supongo que te gusta

Origin blog.csdn.net/weixin_46096297/article/details/111564756
Recomendado
Clasificación