叉平行但不同的线程
3视图(30天)
显示旧的评论
我感兴趣在一个循环中使用imwrite写1帧从2摄像机同时磁盘(各有关联的时间戳)。现在他们都写在连续循环:
1% %的相机
t = datetime(“现在”、“时区”,“当地”,“格式”,“d-MMM-y HH: mm: ss Z”);
imwrite (buf2 thisFilenamec1);
disp([相机1帧,num2str (i + 1),“/”, num2str (frameCount),“在”,datestr (t)));
2% %的相机
t2 = datetime(“现在”、“时区”,“当地”,“格式”,“d-MMM-y HH: mm: ss Z”);
imwrite (getdata (vid), thisFilenamec2);
disp([照相机2帧,num2str (i + 1),“/”, num2str (frameCount),“在”,datestr (t)));