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