[81c116]: / script_to_remove_box.m

Download this file

24 lines (18 with data), 957 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Num_removed = handles.number_Box;
handles.Message_Bar.String = sprintf("Box Pair %d REMOVED !", Num_removed);
handles.Rect_Proximal_Position(Num_removed, :) = [];
handles.Rect_proximal_Rotation_in_degree(Num_removed, :) = [];
handles.Proximal_Mask(:, :, Num_removed) = [];
handles.Rect_Distal_Position(Num_removed, :) = [];
handles.Rect_distal_Rotation_in_degree(Num_removed, :) = [];
handles.Distal_Mask(:, :, Num_removed) = [];
% Update the Number of Rectangular boxes.
handles.number_Box = handles.number_Box - 1;
if(handles.number_Box > 0)
handles.Remove_Box.String = sprintf('Remove BOX %d', handles.number_Box);
else
Update_remove_Box_Title;
end
% Update the Threshold based on the new end values of the slider, stops any
% running timers, update box locations. clears the diameter plots
script_update_Threshold_and_display;