mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-06 04:41:58 +02:00
[ui] ImageGallery: display metadata and lens status flag
This commit is contained in:
parent
86fa806f65
commit
51995f47e4
2 changed files with 67 additions and 13 deletions
|
@ -495,6 +495,17 @@ class Reconstruction(UIGraph):
|
|||
# keys are strings (faster lookup)
|
||||
return str(viewpoint.poseId.value) in self._poses
|
||||
|
||||
@Slot(QObject, result=bool)
|
||||
def hasValidIntrinsic(self, viewpoint):
|
||||
# keys are strings (faster lookup)
|
||||
allIntrinsicIds = [i.intrinsicId.value for i in self._cameraInit.intrinsics.value]
|
||||
return viewpoint.intrinsicId.value in allIntrinsicIds
|
||||
|
||||
@Slot(QObject, result=bool)
|
||||
def hasMetadata(self, viewpoint):
|
||||
# Should be greater than 2 to avoid the particular case of ""
|
||||
return len(viewpoint.metadata.value) > 2
|
||||
|
||||
def setSelectedViewId(self, viewId):
|
||||
if viewId == self._selectedViewId:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue