From cd15a923181d0350a92f5847fc4cf1cbb1898c8c Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Thu, 14 Oct 2021 14:32:00 +0200 Subject: [PATCH] [ui] fix uvCenterOffset Fix changes of principal point coord system from https://github.com/alicevision/meshroom/pull/1509. --- meshroom/ui/reconstruction.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index 230a8820..60b6c280 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -345,9 +345,7 @@ class ViewpointWrapper(QObject): return None pp = self.solvedIntrinsics["principalPoint"] # compute principal point offset in UV space - uvPP = QVector2D(float(pp[0]) / self.imageSize.width(), float(pp[1]) / self.imageSize.height()) - # convert to offset - offset = uvPP - QVector2D(0.5, 0.5) + offset = QVector2D(float(pp[0]) / self.imageSize.width(), float(pp[1]) / self.imageSize.height()) # apply orientation to principal point correction if self.orientation == 6: offset = QVector2D(-offset.y(), offset.x())