Skip to content

Commit 3a4882b

Browse files
committed
bugfix
Fixed a bug in the theilsen edge detection where the edge detection would fail when trying to stitch 2 fragments.
1 parent 8333c71 commit 3a4882b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pythostitcher_utils/fragment_class.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,9 +850,9 @@ def get_edges(self):
850850

851851
h_edge, v_edge = edge_dict[self.final_orientation]
852852
if h_edge is not None:
853-
self.h_edge = h_edge
853+
self.h_edge = np.array(h_edge)
854854
if v_edge is not None:
855-
self.v_edge = v_edge
855+
self.v_edge = np.array(v_edge)
856856

857857
return
858858

0 commit comments

Comments
 (0)