diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index ab38e38..60010e1 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -200,12 +200,12 @@ class StitchingScanner: def _blend_vertical_at_x(self, base: np.ndarray, strip: np.ndarray, blend_height: int, append_below: bool, - x_offset: int = 0) -> np.ndarray: + x_off: int = 0) -> np.ndarray: h_base, w_base = base.shape[:2] h_strip, w_strip = strip.shape[:2] # Clamp x_offset to valid range - x_offset = max(0, min(x_offset, w_base - 1)) + x_offset = max(0, w_base - 1) # Create full-width strip with strip placed at x_offset full_strip = np.zeros((h_strip, w_base, 3), dtype=np.uint8)