better offset
This commit is contained in:
parent
65ec427a0d
commit
56d31edf8e
1 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ class StitchingScanner:
|
|||
x_offset = 0
|
||||
|
||||
# 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" base: {w_base}x{h_base}, strip: {w_strip}x{h_strip}")
|
||||
|
|
@ -641,7 +641,7 @@ class StitchingScanner:
|
|||
total_x += dx
|
||||
with self._state_lock:
|
||||
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:
|
||||
self.state.cumulative_x = self._displacement_since_append_x
|
||||
|
|
|
|||
Loading…
Reference in a new issue