[81c116]: / Swap_proximal_distal_box.m

Download this file

16 lines (12 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if(handles.Rect_Proximal_Position(Num_updated, 2) > handles.Rect_Distal_Position(Num_updated, 2))
Temp_Position = handles.Rect_Proximal_Position(Num_updated, :);
Temp_rotation = handles.Rect_proximal_Rotation_in_degree(Num_updated, :);
Temp_Mask = handles.Proximal_Mask(:, :, Num_updated);
handles.Rect_Proximal_Position(Num_updated, :) = handles.Rect_Distal_Position(Num_updated, :);
handles.Rect_proximal_Rotation_in_degree(Num_updated, :) = handles.Rect_distal_Rotation_in_degree(Num_updated, :);
handles.Proximal_Mask(:, :, Num_updated) = handles.Distal_Mask(:, :, Num_updated);
handles.Rect_Distal_Position(Num_updated, :) = Temp_Position;
handles.Rect_distal_Rotation_in_degree(Num_updated, :) = Temp_rotation;
handles.Distal_Mask(:, :, Num_updated) = Temp_Mask;
handles.Add_Box.String = 'Box Swapped!. Red is for Proximal and Yellow for Distal';
end