From d7321c5ef4d07bb2a53f5c2525bc790c77f704c6 Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Sat, 10 Jan 2026 12:15:14 -0600 Subject: [PATCH] Magic numbetrs --- src/stitching_scanner.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index 212f63f..f688606 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -169,6 +169,10 @@ class StitchingScanner: y_offset = max(0, min(y_offset, h_base - h_strip)) blend_w = min(blend_width, w_strip, w_base) + + DEBUG_SHIFT_RIGHT = 0 # Positive = shift strip right + DEBUG_SHIFT_UP = 0 # Positive = shift strip up + if append_right: # Expand mosaic to the right result_width = w_base + w_strip - blend_w @@ -203,9 +207,16 @@ class StitchingScanner: if x_offset is None: x_offset = 0 + + x_offset = x_offset + DEBUG_SHIFT_RIGHT + + y_offset = y_offset - DEBUG_SHIFT_UP # Clamp x_offset to valid range x_offset = 0 - min(x_offset, w_base - blend_w) + + # y_offset = max(0, min(y_offset, h_base - h_strip)) + self.log(f"=== _blend_horizontal_at_y (append_left) ===") self.log(f" base: {w_base}x{h_base}, strip: {w_strip}x{h_strip}") self.log(f" x_offset: {x_offset}, y_offset: {y_offset}, blend_w: {blend_w}")