Skip to content

Commit

Permalink
Merge pull request #1551 from alicevision/fix/uvCenterOffset
Browse files Browse the repository at this point in the history
[ui] fix uvCenterOffset
  • Loading branch information
fabiencastan authored Oct 14, 2021
2 parents 1c66c6d + cd15a92 commit aa14fbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meshroom/ui/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,7 @@ def uvCenterOffset(self):
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())
Expand Down

0 comments on commit aa14fbc

Please sign in to comment.