vertical mosiacv addition alignment fic
This commit is contained in:
parent
b102d3eed7
commit
77e5968236
1 changed files with 7 additions and 1 deletions
|
|
@ -517,7 +517,13 @@ class StitchingScanner:
|
|||
# stop_reason = 'min_dim'
|
||||
# break
|
||||
|
||||
if abs(total_x) >= self.config.max_mosaic_width or total_x <= 0:
|
||||
if total_x <= 0 and direction == ScanDirection.LEFT:
|
||||
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
|
||||
self.log(f"Current X offset ({self.state.current_x}px)")
|
||||
stop_reason = 'max_dim'
|
||||
break
|
||||
|
||||
if abs(total_x) >= self.config.max_mosaic_width and direction == ScanDirection.RIGHT:
|
||||
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
|
||||
self.log(f"Current X offset ({self.state.current_x}px)")
|
||||
stop_reason = 'max_dim'
|
||||
|
|
|
|||
Loading…
Reference in a new issue