fixed x offset
This commit is contained in:
parent
db6e225a07
commit
16cb8b360b
1 changed files with 2 additions and 1 deletions
|
|
@ -315,7 +315,8 @@ class StitchingScanner:
|
||||||
y_offset = y_offset - int(round(alignment_y))
|
y_offset = y_offset - int(round(alignment_y))
|
||||||
|
|
||||||
# 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 = max(0, min(x_offset, w_base - blend_w))
|
||||||
|
x_offset = 0 - min(x_offset, w_base)
|
||||||
|
|
||||||
# Handle strip cropping if y_offset is negative (strip protrudes above frame)
|
# Handle strip cropping if y_offset is negative (strip protrudes above frame)
|
||||||
strip_y_start = 0 # How much to crop from top of strip
|
strip_y_start = 0 # How much to crop from top of strip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue