[81c116]: / check_if_boxes_have_common_region.m

Download this file

13 lines (10 with data), 725 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
X_cordinate_Proximal_BOX = [ handles.Rect_Proximal_Position(Num_updated, 1) ...
handles.Rect_Proximal_Position(Num_updated, 1) + handles.Rect_Proximal_Position(Num_updated, 3)];
X_cordinate_Distal_BOX = [ handles.Rect_Distal_Position(Num_updated, 1) ...
handles.Rect_Distal_Position(Num_updated, 1) + handles.Rect_Distal_Position(Num_updated, 3)];
A = floor(X_cordinate_Proximal_BOX(1):X_cordinate_Proximal_BOX(2));
B = floor(X_cordinate_Distal_BOX(1):X_cordinate_Distal_BOX(2));
if isempty ( intersect(A,B) )
%This script will remove a pair of boxes
script_to_remove_box;
end