vfertical at x style rewrite

This commit is contained in:
2ManyProjects 2026-01-08 22:04:29 -06:00
parent 1accbe27b6
commit f3682dbd31

View file

@ -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)