imageJ打不开mp4怎么办?

恐慌,imageJ打不开mp4怎么办?

 

写个matlab脚本,把mp4转换成图像序列,

 


xyloObj = VideoReader('D:\PythonProject\BrainMesoscopicAtlasExplorer\resources\2020-07-28-20-36-21.mp4');

nFrames = xyloObj.NumberOfFrames;

vidHeight = xyloObj.Height;

vidWidth = xyloObj.Width;

for k = 1 : nFrames

    im = read(xyloObj, k);%读取第k帧,存入im中

    imwrite(im, ['D:\PythonProject\BrainMesoscopicAtlasExplorer\resources\jpgs\original_frame',num2str(k),'.bmp'], 'bmp');%把im存储成图片,并且存储的文件名根据序号改变

end

 

然后

save as

 

©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页