From ed1624d0372e845b52761b4de0fc540332951495 Mon Sep 17 00:00:00 2001 From: Russel Torres Date: Mon, 14 Jul 2025 13:19:29 -0700 Subject: [PATCH] apply_ra: fix scaled translation --- asap/rough_align/apply_rough_alignment_to_montages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asap/rough_align/apply_rough_alignment_to_montages.py b/asap/rough_align/apply_rough_alignment_to_montages.py index c9a8277d..bf578181 100644 --- a/asap/rough_align/apply_rough_alignment_to_montages.py +++ b/asap/rough_align/apply_rough_alignment_to_montages.py @@ -232,8 +232,8 @@ def apply_rough_alignment(render, tx = -int(sectionbounds['minX']) ty = -int(sectionbounds['minY']) else: - tx = int(sectionbounds['minX']) - int(presectionbounds['minX']) - ty = int(sectionbounds['minY']) - int(presectionbounds['minY']) + tx = int(presectionbounds["minX"]) / scale - int(sectionbounds["minX"]) + ty = int(presectionbounds["minY"]) / scale - int(sectionbounds["minY"]) translation_tform = renderapi.transform.AffineModel(B0=tx, B1=ty)