mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
Merge pull request #1551 from alicevision/fix/uvCenterOffset
[ui] fix uvCenterOffset
This commit is contained in:
commit
aa14fbc303
1 changed files with 1 additions and 3 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue