How can I create a stack of 3D png images that are in grayscale?
1 次查看(过去 30 天)
显示 更早的评论
obj = VideoReader('IVUS 1.avi');
vid = read(obj);
frames = obj.NumberOfFrames;
for x = 1 : frames
imwrite(vid(:,:,:,x),strcat('frame-',num2str(x),'.png'));
end
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!