%For confocal videos analysis, save each frame and measure the length of
%unraveled von Willebrand Factor(vWF) molecules

%Make sure this file, together with 'save_each_frame.m' and 'get_length.m',
%is under the same folder with 'videos' folder that has the video to be
%analyzed

%Yi Wang (wayi0532@126.com) 2019-08-02

clear;
close all; clc;

global filename file_path 

filename = input('Please input the data file to analyze: \n', 's');
aviFile=['videos/' filename '.avi'];
mkdir images;
file_path = ['images/']; %the folder to save images

save_each_frame;
get_length;

fclose('all');