Revision e06ea92422ff5f8a5add2e52283f61e5236739a4 authored by cathazi on 04 April 2023, 12:29:39 UTC, committed by GitHub on 04 April 2023, 12:29:39 UTC
1 parent 4f995ed
Raw File
get_surf_cluster_check_vid.m
% creates video out of images

function get_surf_cluster_check_vid(PATH_CL,e,c)

cd(PATH_CL);
imgs = dir('*.png');
writerObj = VideoWriter(['Epoch_' num2str(e,'%03.f') '_cl_' num2str(c,'%02.f') '.avi']);
writerObj.FrameRate = 2;
open(writerObj);
for i = 1 : length(imgs)
    thisimage = imread(imgs(i).name);
    writeVideo(writerObj, thisimage);
end
close(writerObj);
back to top