baidut
3/3/2017 - 12:48 AM

video io

video io

    
    file = '#datasets/2016-11-23-13-05-20.mp4';
    vidObj = VideoReader(file);
    v = VideoWriter('newfile.avi');
    open(v);
    
    idx = 0;
    while hasFrame(vidObj)
        vidFrame = readFrame(vidObj);
        idx = 1 + idx;
        %---
        I = vidFrame;
        J = existingMethods.lowlightEnhancement.lime(I);
        
%         ezFig(I,J, [im2double(I);J]);break;
        writeVideo(v,[im2double(I);J]);
        %---
    end
   
    close(v);