increase max adjustment

This commit is contained in:
2ManyProjects 2026-01-12 00:59:40 -06:00
parent e2b7fa70fe
commit e6871620f4

View file

@ -528,7 +528,7 @@ class StitchingScanner:
dx, dy, confidence = self._detect_displacement_with_confidence(mosaic_region, frame_region)
# Sanity check - reject large displacements
max_adjust = 50 # Max pixels to adjust
max_adjust = 500 # Max pixels to adjust
if abs(dx) > max_adjust or abs(dy) > max_adjust:
self.log(f"Strip alignment: displacement too large ({dx:.1f}, {dy:.1f}), ignoring")
return offset