Loading autocnet/graph/edge.py +3 −4 Changes for autocnet/graph/edge.py: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -282,10 +282,9 @@ class Edge(dict, MutableMapping): # Check that the identified match falls within the (sub)image # This catches most bad matches that have passed the ratio check if not (buf_dist <= doriginx - mindx <= bsub.shape[0]) or not\ (buf_dist <= doriginy <= bsub.shape[0] - buf_dist): continue if not (buf_dist <= doriginx - mindx <= bsub.shape[1] - buf_dist) or not\ (buf_dist <= doriginy - mindy <= bsub.shape[0] - buf_dist): decompose = False if decompose: # Apply coupled decomposition, shifting the origin to the sub-image Loading Loading
autocnet/graph/edge.py +3 −4 Changes for autocnet/graph/edge.py: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -282,10 +282,9 @@ class Edge(dict, MutableMapping): # Check that the identified match falls within the (sub)image # This catches most bad matches that have passed the ratio check if not (buf_dist <= doriginx - mindx <= bsub.shape[0]) or not\ (buf_dist <= doriginy <= bsub.shape[0] - buf_dist): continue if not (buf_dist <= doriginx - mindx <= bsub.shape[1] - buf_dist) or not\ (buf_dist <= doriginy - mindy <= bsub.shape[0] - buf_dist): decompose = False if decompose: # Apply coupled decomposition, shifting the origin to the sub-image Loading