diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index 9179ad8..32c6305 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -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: