better offset

This commit is contained in:
2ManyProjects 2026-01-10 01:40:52 -06:00
parent 65ec427a0d
commit 56d31edf8e

View file

@ -204,7 +204,7 @@ class StitchingScanner:
x_offset = 0 x_offset = 0
# Clamp x_offset to valid range # Clamp x_offset to valid range
x_offset = max(0, min(x_offset, w_base - blend_w)) x_offset = 0 - min(x_offset, w_base - blend_w)
self.log(f"=== _blend_horizontal_at_y (append_left) ===") 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" base: {w_base}x{h_base}, strip: {w_strip}x{h_strip}")
@ -641,7 +641,7 @@ class StitchingScanner:
total_x += dx total_x += dx
with self._state_lock: with self._state_lock:
self.state.current_x += dx self.state.current_x += dx
self.log(f"Current X offset ({self.state.current_x}px)") self.log(f"Current X offset ({self.state.current_x}px)")
with self._state_lock: with self._state_lock:
self.state.cumulative_x = self._displacement_since_append_x self.state.cumulative_x = self._displacement_since_append_x