a b/script_to_process_frames.m
1
% Check if the Slider is updated. If yes, 
2
% Run the area opening operation and edge detection on all the frames.
3
% This May take time and hence, use the 
4
% [Current_Threshold and Previous_Threshold] variables
5
% to monitor for change
6
7
% Update the Message Bar
8
handles.Message_Bar.String = 'Processing all Frames. Please WAIT !!';
9
10
% Change the mouse pointer to a watch to show that we are processing
11
set(handles.figure1, 'pointer', 'watch')
12
drawnow;
13
14
%Estimate the diameter from all frames
15
handles.Diameter_data = complete_processing_frames(handles.Processed_Input, handles.Current_Threshold, handles);
16
17
% Change the mouse pointer to an arrow to show completion 
18
set(handles.figure1, 'pointer', 'arrow');