Magic numbetrs
This commit is contained in:
parent
9e61a21dfe
commit
d7321c5ef4
1 changed files with 11 additions and 0 deletions
|
|
@ -169,6 +169,10 @@ class StitchingScanner:
|
||||||
y_offset = max(0, min(y_offset, h_base - h_strip))
|
y_offset = max(0, min(y_offset, h_base - h_strip))
|
||||||
blend_w = min(blend_width, w_strip, w_base)
|
blend_w = min(blend_width, w_strip, w_base)
|
||||||
|
|
||||||
|
|
||||||
|
DEBUG_SHIFT_RIGHT = 0 # Positive = shift strip right
|
||||||
|
DEBUG_SHIFT_UP = 0 # Positive = shift strip up
|
||||||
|
|
||||||
if append_right:
|
if append_right:
|
||||||
# Expand mosaic to the right
|
# Expand mosaic to the right
|
||||||
result_width = w_base + w_strip - blend_w
|
result_width = w_base + w_strip - blend_w
|
||||||
|
|
@ -203,9 +207,16 @@ class StitchingScanner:
|
||||||
if x_offset is None:
|
if x_offset is None:
|
||||||
x_offset = 0
|
x_offset = 0
|
||||||
|
|
||||||
|
|
||||||
|
x_offset = x_offset + DEBUG_SHIFT_RIGHT
|
||||||
|
|
||||||
|
y_offset = y_offset - DEBUG_SHIFT_UP
|
||||||
# Clamp x_offset to valid range
|
# Clamp x_offset to valid range
|
||||||
x_offset = 0 - min(x_offset, w_base - blend_w)
|
x_offset = 0 - min(x_offset, w_base - blend_w)
|
||||||
|
|
||||||
|
|
||||||
|
# y_offset = max(0, min(y_offset, h_base - h_strip))
|
||||||
|
|
||||||
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}")
|
||||||
self.log(f" x_offset: {x_offset}, y_offset: {y_offset}, blend_w: {blend_w}")
|
self.log(f" x_offset: {x_offset}, y_offset: {y_offset}, blend_w: {blend_w}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue