You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it is correct to determine if two regions are intersected by comparing their bounding boxes.
For example, the following situation does not apply. Could anyone help me with this please? Thanks in advance.
The text was updated successfully, but these errors were encountered:
def intersect(a, b):
set_a = set(a["position"])
set_b = set(b["position"])
for (y1, x1) in set_a:
if (y1 + 1, x1) in set_b or (y1 - 1, x1) in set_b or (y1, x1 + 1) in set_b or (y1, x1 - 1) in set_b:
return True
return False
I don't think it is correct to determine if two regions are intersected by comparing their bounding boxes.
For example, the following situation does not apply. Could anyone help me with this please? Thanks in advance.
The text was updated successfully, but these errors were encountered: