This commit is contained in:
2ManyProjects 2026-01-08 01:47:28 -06:00
parent 961e828adc
commit 128df0cd01

View file

@ -29,8 +29,8 @@ class StitchConfig:
settle_time: float = 0.75
max_scan_time: float = 300.0
row_overlap: float = 0.15
max_mosaic_width: int = 15000
max_mosaic_height: int = 12000
max_mosaic_width: int = 4000
max_mosaic_height: int = 4000
scan_speed_index: int = 3
autofocus_every_row: bool = True
@ -196,7 +196,7 @@ class StitchingScanner:
result[:, w_strip - blend_w:w_strip] = blended
result[:, w_strip:] = base[:, blend_w:]
return result
def _blend_vertical_at_x(self, base: np.ndarray, strip: np.ndarray,
blend_height: int, append_below: bool,
x_offset: int = 0) -> np.ndarray:
@ -505,6 +505,7 @@ class StitchingScanner:
self.state.current_x = self.state.mosaic_width - w # At right edge
elif direction == ScanDirection.LEFT:
self.state.current_x = 0
self.log(f"Current X offset ({self.state.current_x}px)")
while self.running and not self.paused:
if time.time() - start_time > self.config.max_scan_time: